pub enum StyleSource<'a> {
Recipe(&'a Recipe),
Path(PathBuf),
}Expand description
Borrow an existing style recipe or read one from a local path.
Variants§
Trait Implementations§
Source§impl<'a> From<&'a Recipe> for StyleSource<'a>
impl<'a> From<&'a Recipe> for StyleSource<'a>
Source§fn from(recipe: &'a Recipe) -> StyleSource<'a>
fn from(recipe: &'a Recipe) -> StyleSource<'a>
Converts to this type from the input type.
Source§impl From<&Path> for StyleSource<'_>
impl From<&Path> for StyleSource<'_>
Source§fn from(path: &Path) -> StyleSource<'_>
fn from(path: &Path) -> StyleSource<'_>
Converts to this type from the input type.
Source§impl From<&PathBuf> for StyleSource<'_>
impl From<&PathBuf> for StyleSource<'_>
Source§fn from(path: &PathBuf) -> StyleSource<'_>
fn from(path: &PathBuf) -> StyleSource<'_>
Converts to this type from the input type.
Source§impl From<&String> for StyleSource<'_>
impl From<&String> for StyleSource<'_>
Source§fn from(path: &String) -> StyleSource<'_>
fn from(path: &String) -> StyleSource<'_>
Converts to this type from the input type.
Source§impl From<&str> for StyleSource<'_>
impl From<&str> for StyleSource<'_>
Source§fn from(path: &str) -> StyleSource<'_>
fn from(path: &str) -> StyleSource<'_>
Converts to this type from the input type.
Source§impl From<PathBuf> for StyleSource<'_>
impl From<PathBuf> for StyleSource<'_>
Source§fn from(path: PathBuf) -> StyleSource<'_>
fn from(path: PathBuf) -> StyleSource<'_>
Converts to this type from the input type.
Source§impl From<String> for StyleSource<'_>
impl From<String> for StyleSource<'_>
Source§fn from(path: String) -> StyleSource<'_>
fn from(path: String) -> StyleSource<'_>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Forget for StyleSource<'a>
impl<'a> Freeze for StyleSource<'a>
impl<'a> Move for StyleSource<'a>
impl<'a> RefUnwindSafe for StyleSource<'a>
impl<'a> Send for StyleSource<'a>
impl<'a> Sync for StyleSource<'a>
impl<'a> Unpin for StyleSource<'a>
impl<'a> UnsafeUnpin for StyleSource<'a>
impl<'a> UnwindSafe for StyleSource<'a>
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.