[][src]Trait rkyv::SeekExt

pub trait SeekExt: Seek {
    pub fn archive_root<T: Archive>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error> { ... }
pub fn archive_ref_root<T: ArchiveRef + ?Sized>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error> { ... } }

Helper functions on Seek objects.

Provided methods

pub fn archive_root<T: Archive>(
    &mut self,
    value: &T
) -> Result<usize, Self::Error>
[src]

Archives the given value at the nearest available position. If the writer is already aligned, it will archive it at the current position.

pub fn archive_ref_root<T: ArchiveRef + ?Sized>(
    &mut self,
    value: &T
) -> Result<usize, Self::Error>
[src]

Archives a reference to the given value at the nearest available position. If the writer is already aligned, it will archive it at the current position.

Loading content...

Implementors

impl<W: Seek + ?Sized> SeekExt for W[src]

Loading content...