Trait rkyv::Seek [−][src]
A writer that can seek to an absolute position.
Required methods
fn seek(&mut self, pos: usize) -> Result<(), Self::Error>
[src]
Seeks the writer to the given absolute position.
Provided methods
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.
fn archive_ref_root<T: ArchiveRef + ?Sized>(
&mut self,
value: &T
) -> Result<usize, Self::Error>
[src]
&mut self,
value: &T
) -> Result<usize, Self::Error>
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.