Enum ethane::types::ValueOrVec [−][src]
pub enum ValueOrVec<T> { Value(T), Vec(Vec<T>), }
Wrapper to allow a single value or a list of values
Variants
Vec(Vec<T>)
Trait Implementations
impl<T: Clone> Clone for ValueOrVec<T>
[src]
impl<T: Clone> Clone for ValueOrVec<T>
[src]fn clone(&self) -> ValueOrVec<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: PartialEq> PartialEq<ValueOrVec<T>> for ValueOrVec<T>
[src]
impl<T: PartialEq> PartialEq<ValueOrVec<T>> for ValueOrVec<T>
[src]fn eq(&self, other: &ValueOrVec<T>) -> bool
[src]
fn ne(&self, other: &ValueOrVec<T>) -> bool
[src]
impl<T> Serialize for ValueOrVec<T> where
T: Serialize,
[src]
impl<T> Serialize for ValueOrVec<T> where
T: Serialize,
[src]impl<T> StructuralPartialEq for ValueOrVec<T>
[src]
impl<T> StructuralPartialEq for ValueOrVec<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for ValueOrVec<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for ValueOrVec<T> where
T: RefUnwindSafe,
impl<T> Send for ValueOrVec<T> where
T: Send,
impl<T> Send for ValueOrVec<T> where
T: Send,
impl<T> Sync for ValueOrVec<T> where
T: Sync,
impl<T> Sync for ValueOrVec<T> where
T: Sync,
impl<T> Unpin for ValueOrVec<T> where
T: Unpin,
impl<T> Unpin for ValueOrVec<T> where
T: Unpin,
impl<T> UnwindSafe for ValueOrVec<T> where
T: UnwindSafe,
impl<T> UnwindSafe for ValueOrVec<T> where
T: UnwindSafe,