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, V> Clone for NestedValue<C, V>where
C: Clone,
V: Clone,
impl<C, V> Clone for NestedValue<C, V>where C: Clone, V: Clone,
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(_: (C, V)) -> NestedValue<C, V>
fn from(_: (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<C, V> PartialEq<NestedValue<C, V>> for NestedValue<C, V>where
C: PartialEq<C>,
V: PartialEq<V>,
impl<C, V> PartialEq<NestedValue<C, V>> for NestedValue<C, V>where C: PartialEq<C>, V: PartialEq<V>,
source§fn eq(&self, other: &NestedValue<C, V>) -> bool
fn eq(&self, other: &NestedValue<C, V>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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