Enum stager::de::OneOrMany [] [src]

pub enum OneOrMany<T> {
    One(T),
    Many(Vec<T>),
}

Variants

Trait Implementations

impl<T: Clone> Clone for OneOrMany<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for OneOrMany<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for OneOrMany<T>
[src]

impl<T: PartialEq> PartialEq for OneOrMany<T>
[src]

[src]

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

[src]

This method tests for !=.

impl<T> Render for OneOrMany<T> where
    T: Render
[src]

[src]

Auto Trait Implementations

impl<T> Send for OneOrMany<T> where
    T: Send

impl<T> Sync for OneOrMany<T> where
    T: Sync