pub struct BasicVecVisitor;Expand description
An implementation of ArrayVisitor<'de, T> where the output is a Vec<T>.
Trait Implementations§
Source§impl<'de, T> ArrayVisitor<'de, T> for BasicVecVisitor
impl<'de, T> ArrayVisitor<'de, T> for BasicVecVisitor
Source§fn visit<A>(
self,
vec: A,
) -> Result<<BasicVecVisitor as ArrayVisitor<'de, T>>::Output, <A as ArrayAccess<'de>>::Error>where
A: ArrayAccess<'de, Element = T>,
fn visit<A>(
self,
vec: A,
) -> Result<<BasicVecVisitor as ArrayVisitor<'de, T>>::Output, <A as ArrayAccess<'de>>::Error>where
A: ArrayAccess<'de, Element = T>,
The input contains an array.
Auto Trait Implementations§
impl Freeze for BasicVecVisitor
impl RefUnwindSafe for BasicVecVisitor
impl Send for BasicVecVisitor
impl Sync for BasicVecVisitor
impl Unpin for BasicVecVisitor
impl UnwindSafe for BasicVecVisitor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more