Enum stager::de::OneOrMany
[−]
[src]
pub enum OneOrMany<T> { One(T), Many(Vec<T>), }
Variants
One(T)
Many(Vec<T>)
Trait Implementations
impl<T: Clone> Clone for OneOrMany<T>
[src]
fn clone(&self) -> OneOrMany<T>
[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<T: Debug> Debug for OneOrMany<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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]
fn eq(&self, __arg_0: &OneOrMany<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OneOrMany<T>) -> bool
[src]
This method tests for !=
.
impl<T> Render for OneOrMany<T> where
T: Render,
[src]
T: Render,