pub enum NestedValue<C, V> {
Category(C),
Value(C, V),
}
Expand description
Describe a value for a nested coordinate
Variants
Category(C)
Category value
Value(C, V)
One exact nested value
Implementations
sourceimpl<C, V> NestedValue<C, V>
impl<C, V> NestedValue<C, V>
Trait Implementations
sourceimpl<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,
sourcefn clone(&self) -> NestedValue<C, V>
fn clone(&self) -> NestedValue<C, V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<C, V> Debug for NestedValue<C, V> where
C: Debug,
V: Debug,
impl<C, V> Debug for NestedValue<C, V> where
C: Debug,
V: Debug,
sourceimpl<C, V> From<(C, V)> for NestedValue<C, V>
impl<C, V> From<(C, V)> for NestedValue<C, V>
sourcefn from((C, V)) -> NestedValue<C, V>
fn from((C, V)) -> NestedValue<C, V>
Converts to this type from the input type.
sourceimpl<C, V> From<C> for NestedValue<C, V>
impl<C, V> From<C> for NestedValue<C, V>
sourcefn from(cat: C) -> NestedValue<C, V>
fn from(cat: C) -> NestedValue<C, V>
Converts to this type from the input type.
sourceimpl<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>,
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &NestedValue<C, V>) -> bool
fn ne(&self, other: &NestedValue<C, V>) -> bool
This method tests for !=
.
sourceimpl<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>,
sourcefn format(value: &NestedValue<PT, ST>) -> String
fn format(value: &NestedValue<PT, ST>) -> String
Format the value
impl<C, V> Eq for NestedValue<C, V> where
C: Eq,
V: Eq,
impl<C, V> StructuralEq for NestedValue<C, V>
impl<C, V> StructuralPartialEq for NestedValue<C, V>
Auto Trait Implementations
impl<C, V> RefUnwindSafe for NestedValue<C, V> where
C: RefUnwindSafe,
V: RefUnwindSafe,
impl<C, V> Send for NestedValue<C, V> where
C: Send,
V: Send,
impl<C, V> Sync for NestedValue<C, V> where
C: Sync,
V: Sync,
impl<C, V> Unpin for NestedValue<C, V> where
C: Unpin,
V: Unpin,
impl<C, V> UnwindSafe for NestedValue<C, V> where
C: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more