pub enum DynamicItem {
Var {
name: String,
format_spec: Option<String>,
},
Str(String),
}Expand description
Item of a split string - either a variable name (with optional format spec) 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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 (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 PartialEq for DynamicItem
impl PartialEq for DynamicItem
Source§fn eq(&self, other: &DynamicItem) -> bool
fn eq(&self, other: &DynamicItem) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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