Struct serde_single_or_vec2::AlwaysVector
source · [−]pub struct AlwaysVector {}
Expand description
Always returns a vector on serialisation
Trait Implementations
sourceimpl Clone for AlwaysVector
impl Clone for AlwaysVector
sourcefn clone(&self) -> AlwaysVector
fn clone(&self) -> AlwaysVector
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 Debug for AlwaysVector
impl Debug for AlwaysVector
sourceimpl Format for AlwaysVector
impl Format for AlwaysVector
sourcefn use_single() -> bool
fn use_single() -> bool
If this returns true, the serializer will returns a single value if there is only one in the vector. Otherwise it will always returns a vector Read more
impl Copy for AlwaysVector
Auto Trait Implementations
impl RefUnwindSafe for AlwaysVector
impl Send for AlwaysVector
impl Sync for AlwaysVector
impl Unpin for AlwaysVector
impl UnwindSafe for AlwaysVector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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