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
sourceimpl<F> ArchiveWith<F> for Skip
impl<F> ArchiveWith<F> for Skip
Auto Trait Implementations
impl RefUnwindSafe for Skip
impl Send for Skip
impl Sync for Skip
impl Unpin for Skip
impl UnwindSafe for Skip
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more