pub struct AsVec<T, U, SU>(pub T, pub PhantomData<U>, pub PhantomData<SU>);Expand description
A wrapper that causes the wrapped container to be serialized as a Vec
collected from its iterated values.
The item type of the container needs to be given as the second type parameter.
Tuple Fields§
§0: T§1: PhantomData<U>§2: PhantomData<SU>Implementations§
Trait Implementations§
Source§impl<'de, T: FromIterator<U>, U, SU: Into<U> + DeserializeOwned> Deserialize<'de> for AsVec<T, U, SU>
impl<'de, T: FromIterator<U>, U, SU: Into<U> + DeserializeOwned> Deserialize<'de> for AsVec<T, U, SU>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Ord, U: Ord, SU: Ord> Ord for AsVec<T, U, SU>
impl<T: Ord, U: Ord, SU: Ord> Ord for AsVec<T, U, SU>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, U: PartialOrd, SU: PartialOrd> PartialOrd for AsVec<T, U, SU>
impl<T: PartialOrd, U: PartialOrd, SU: PartialOrd> PartialOrd for AsVec<T, U, SU>
Source§impl<T: Clone + IntoIterator<Item = U>, U, SU: Serialize + From<U>> Serialize for AsVec<T, U, SU>
impl<T: Clone + IntoIterator<Item = U>, U, SU: Serialize + From<U>> Serialize for AsVec<T, U, SU>
impl<T: Copy, U: Copy, SU: Copy> Copy for AsVec<T, U, SU>
impl<T: Eq, U: Eq, SU: Eq> Eq for AsVec<T, U, SU>
impl<T, U, SU> StructuralPartialEq for AsVec<T, U, SU>
Auto Trait Implementations§
impl<T, U, SU> Freeze for AsVec<T, U, SU>where
T: Freeze,
impl<T, U, SU> RefUnwindSafe for AsVec<T, U, SU>
impl<T, U, SU> Send for AsVec<T, U, SU>
impl<T, U, SU> Sync for AsVec<T, U, SU>
impl<T, U, SU> Unpin for AsVec<T, U, SU>
impl<T, U, SU> UnwindSafe for AsVec<T, U, SU>
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