Enum plotters::coord::combinators::NestedValue[][src]

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

impl<C, V> NestedValue<C, V>[src]

pub fn category(&self) -> &C[src]

Get the category of current nest value

pub fn nested_value(&self) -> Option<&V>[src]

Get the nested value from this value

Trait Implementations

impl<C: Clone, V: Clone> Clone for NestedValue<C, V>[src]

fn clone(&self) -> NestedValue<C, V>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<C: Debug, V: Debug> Debug for NestedValue<C, V>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<C, V> From<(C, V)> for NestedValue<C, V>[src]

fn from((cat, val): (C, V)) -> NestedValue<C, V>[src]

Performs the conversion.

impl<C, V> From<C> for NestedValue<C, V>[src]

fn from(cat: C) -> NestedValue<C, V>[src]

Performs the conversion.

impl<C: PartialEq, V: PartialEq> PartialEq<NestedValue<C, V>> for NestedValue<C, V>[src]

fn eq(&self, other: &NestedValue<C, V>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &NestedValue<C, V>) -> bool[src]

This method tests for !=.

impl<PT, ST, P, S> ValueFormatter<NestedValue<PT, ST>> for NestedRange<P, S> where
    P: Ranged<ValueType = PT> + DiscreteRanged,
    S: Ranged<ValueType = ST>,
    P: ValueFormatter<PT>,
    S: ValueFormatter<ST>, 
[src]

fn format(value: &NestedValue<PT, ST>) -> String[src]

Format the value

impl<C: Eq, V: Eq> Eq for NestedValue<C, V>[src]

impl<C, V> StructuralEq for NestedValue<C, V>[src]

impl<C, V> StructuralPartialEq for NestedValue<C, V>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<!> for T[src]

pub fn from(t: !) -> T[src]

Performs the conversion.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.