pub struct Skip;
Expand description
A wrapper that skips serializing a field.
Skipped fields must implement Default
to be deserialized.
§Example
use rkyv::{Archive, with::Skip};
#[derive(Archive)]
struct Example {
#[with(Skip)]
a: u32,
}
Trait Implementations§
source§impl<F> ArchiveWith<F> for Skip
impl<F> ArchiveWith<F> for Skip
Auto Trait Implementations§
impl Freeze for Skip
impl RefUnwindSafe for Skip
impl Send for Skip
impl Sync for Skip
impl Unpin for Skip
impl UnwindSafe for Skip
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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