pub enum DynamicItem {
Var(String),
Str(String),
}
Expand description
Item of a split string - either a variable name or a string
Variants§
Trait Implementations§
Source§impl Clone for DynamicItem
impl Clone for DynamicItem
Source§fn clone(&self) -> DynamicItem
fn clone(&self) -> DynamicItem
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DynamicItem
impl Debug for DynamicItem
Source§impl Hash for DynamicItem
impl Hash for DynamicItem
Source§impl Ord for DynamicItem
impl Ord for DynamicItem
Source§fn cmp(&self, other: &DynamicItem) -> Ordering
fn cmp(&self, other: &DynamicItem) -> Ordering
1.21.0 · 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 PartialEq for DynamicItem
impl PartialEq for DynamicItem
Source§impl PartialOrd for DynamicItem
impl PartialOrd for DynamicItem
impl Eq for DynamicItem
impl StructuralPartialEq for DynamicItem
Auto Trait Implementations§
impl Freeze for DynamicItem
impl RefUnwindSafe for DynamicItem
impl Send for DynamicItem
impl Sync for DynamicItem
impl Unpin for DynamicItem
impl UnwindSafe for DynamicItem
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