pub struct BasicSmallVecVisitor<const N: usize>;Expand description
An implementation of ArrayVisitor<'de, T> where the output is a SmallVec<[T; N]>.
Trait Implementations§
Source§impl<'de, T, const N: usize> ArrayVisitor<'de, T> for BasicSmallVecVisitor<N>
impl<'de, T, const N: usize> ArrayVisitor<'de, T> for BasicSmallVecVisitor<N>
Source§fn visit<A>(
self,
vec: A,
) -> Result<<BasicSmallVecVisitor<N> as ArrayVisitor<'de, T>>::Output, <A as ArrayAccess<'de>>::Error>where
A: ArrayAccess<'de, Element = T>,
fn visit<A>(
self,
vec: A,
) -> Result<<BasicSmallVecVisitor<N> 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<const N: usize> Freeze for BasicSmallVecVisitor<N>
impl<const N: usize> RefUnwindSafe for BasicSmallVecVisitor<N>
impl<const N: usize> Send for BasicSmallVecVisitor<N>
impl<const N: usize> Sync for BasicSmallVecVisitor<N>
impl<const N: usize> Unpin for BasicSmallVecVisitor<N>
impl<const N: usize> UnwindSafe for BasicSmallVecVisitor<N>
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