pub enum NestedValue<C, V> {
Category(C),
Value(C, V),
}
Expand description
Describe a value for a nested coordinate
Variants§
Implementations§
Source§impl<C, V> NestedValue<C, V>
impl<C, V> NestedValue<C, V>
Trait Implementations§
Source§impl<C: Clone, V: Clone> Clone for NestedValue<C, V>
impl<C: Clone, V: Clone> Clone for NestedValue<C, V>
Source§fn clone(&self) -> NestedValue<C, V>
fn clone(&self) -> NestedValue<C, V>
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<C, V> From<(C, V)> for NestedValue<C, V>
impl<C, V> From<(C, V)> for NestedValue<C, V>
Source§fn from((cat, val): (C, V)) -> NestedValue<C, V>
fn from((cat, val): (C, V)) -> NestedValue<C, V>
Converts to this type from the input type.
Source§impl<C, V> From<C> for NestedValue<C, V>
impl<C, V> From<C> for NestedValue<C, V>
Source§fn from(cat: C) -> NestedValue<C, V>
fn from(cat: C) -> NestedValue<C, V>
Converts to this type from the input type.
Source§impl<PT, ST, P, S> ValueFormatter<NestedValue<PT, ST>> for NestedRange<P, S>where
P: Ranged<ValueType = PT> + DiscreteRanged + ValueFormatter<PT>,
S: Ranged<ValueType = ST> + ValueFormatter<ST>,
impl<PT, ST, P, S> ValueFormatter<NestedValue<PT, ST>> for NestedRange<P, S>where
P: Ranged<ValueType = PT> + DiscreteRanged + ValueFormatter<PT>,
S: Ranged<ValueType = ST> + ValueFormatter<ST>,
Source§fn format(value: &NestedValue<PT, ST>) -> String
fn format(value: &NestedValue<PT, ST>) -> String
Format the value
Source§fn format_ext(&self, value: &V) -> String
fn format_ext(&self, value: &V) -> String
Determine how we can format a value in a coordinate system by default
impl<C: Eq, V: Eq> Eq for NestedValue<C, V>
impl<C, V> StructuralPartialEq for NestedValue<C, V>
Auto Trait Implementations§
impl<C, V> Freeze for NestedValue<C, V>
impl<C, V> RefUnwindSafe for NestedValue<C, V>where
C: RefUnwindSafe,
V: RefUnwindSafe,
impl<C, V> Send for NestedValue<C, V>
impl<C, V> Sync for NestedValue<C, V>
impl<C, V> Unpin for NestedValue<C, V>
impl<C, V> UnwindSafe for NestedValue<C, V>where
C: UnwindSafe,
V: UnwindSafe,
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,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.