pub struct WithBound<S>(pub S);Expand description
The visitor deserializes a Bound<T>.
Tuple Fields§
§0: STrait Implementations§
Source§impl<'de, S> DeserializeSeed<'de> for WithBound<S>where
S: Copy + DeserializeSeed<'de>,
impl<'de, S> DeserializeSeed<'de> for WithBound<S>where
S: Copy + DeserializeSeed<'de>,
Source§type Output = Bound<<S as DeserializeSeed<'de>>::Output>
type Output = Bound<<S as DeserializeSeed<'de>>::Output>
The type produced by using this seed.
Source§fn deserialize<D>(
self,
de: D,
) -> Result<<WithBound<S> as DeserializeSeed<'de>>::Output, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
self,
de: D,
) -> Result<<WithBound<S> as DeserializeSeed<'de>>::Output, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Equivalent to the more common
Deserialize::deserialize associated function,
except with some initial piece of data (the seed self) passed in.impl<S> Copy for WithBound<S>where
S: Copy,
Auto Trait Implementations§
impl<S> Freeze for WithBound<S>where
S: Freeze,
impl<S> RefUnwindSafe for WithBound<S>where
S: RefUnwindSafe,
impl<S> Send for WithBound<S>where
S: Send,
impl<S> Sync for WithBound<S>where
S: Sync,
impl<S> Unpin for WithBound<S>where
S: Unpin,
impl<S> UnwindSafe for WithBound<S>where
S: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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