| //! Generic constructors for newtypes |
| #![allow(non_snake_case)] |
| use crate::{Font as FontType, Label as LabelType, Output as OutputType, Title as TitleType}; |
| /// Generic constructor for `Font` |
| #[cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))] |
| pub fn Font<S>(string: S) -> FontType |
| S: Into<Cow<'static, str>>, |
| /// Generic constructor for `Label` |
| #[cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))] |
| pub fn Label<S>(string: S) -> LabelType |
| S: Into<Cow<'static, str>>, |
| /// Generic constructor for `Title` |
| #[cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))] |
| pub fn Title<S>(string: S) -> TitleType |
| S: Into<Cow<'static, str>>, |
| /// Generic constructor for `Output` |
| #[cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))] |
| pub fn Output<P>(path: P) -> OutputType |
| P: Into<Cow<'static, Path>>, |