pub struct WithWrapper { /* private fields */ }Expand description
A handler for a #[rkyv(with = W)] field wrapper.
Implementations§
Source§impl WithWrapper
impl WithWrapper
Sourcepub fn replace(expr: CodecExpr) -> Self
pub fn replace(expr: CodecExpr) -> Self
Emit expr for the field, ignoring the underlying Rust type
(e.g. an AsJson wrapper backed by a custom codec).
Trait Implementations§
Source§impl Clone for WithWrapper
impl Clone for WithWrapper
Source§fn clone(&self) -> WithWrapper
fn clone(&self) -> WithWrapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WithWrapper
impl RefUnwindSafe for WithWrapper
impl Send for WithWrapper
impl Sync for WithWrapper
impl Unpin for WithWrapper
impl UnsafeUnpin for WithWrapper
impl UnwindSafe for WithWrapper
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