pub enum SrcVar {
DefaultSrc,
NamedSrc(SrcVarName),
}Variants§
DefaultSrc
NamedSrc(SrcVarName)
Implementations§
Source§impl SrcVar
impl SrcVar
pub fn from_symbol(sym: &PlainSymbol) -> Option<SrcVar>
Trait Implementations§
impl Eq for SrcVar
Source§impl Ord for SrcVar
impl Ord for SrcVar
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SrcVar
impl PartialOrd for SrcVar
impl StructuralPartialEq for SrcVar
Auto Trait Implementations§
impl Freeze for SrcVar
impl RefUnwindSafe for SrcVar
impl Send for SrcVar
impl Sync for SrcVar
impl Unpin for SrcVar
impl UnsafeUnpin for SrcVar
impl UnwindSafe for SrcVar
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more