Struct serde_with::ser::SerializeAsWrap
source · pub struct SerializeAsWrap<'a, T: ?Sized, U: ?Sized> { /* private fields */ }
Expand description
Helper type to implement SerializeAs
for container-like types.
Implementations§
Trait Implementations§
source§impl<'a, T, U> From<&'a T> for SerializeAsWrap<'a, T, U>where
T: ?Sized,
U: ?Sized + SerializeAs<T>,
impl<'a, T, U> From<&'a T> for SerializeAsWrap<'a, T, U>where T: ?Sized, U: ?Sized + SerializeAs<T>,
source§impl<'a, T, U> Serialize for SerializeAsWrap<'a, T, U>where
T: ?Sized,
U: ?Sized + SerializeAs<T>,
impl<'a, T, U> Serialize for SerializeAsWrap<'a, T, U>where T: ?Sized, U: ?Sized + SerializeAs<T>,
Auto Trait Implementations§
impl<'a, T: ?Sized, U: ?Sized> RefUnwindSafe for SerializeAsWrap<'a, T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
impl<'a, T: ?Sized, U: ?Sized> Send for SerializeAsWrap<'a, T, U>where T: Sync, U: Send,
impl<'a, T: ?Sized, U: ?Sized> Sync for SerializeAsWrap<'a, T, U>where T: Sync, U: Sync,
impl<'a, T: ?Sized, U: ?Sized> Unpin for SerializeAsWrap<'a, T, U>where U: Unpin,
impl<'a, T: ?Sized, U: ?Sized> UnwindSafe for SerializeAsWrap<'a, T, U>where T: RefUnwindSafe, U: 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