pub struct Writer { /* private fields */ }Expand description
Writer for loam files
The writer can be used to create or append to an existing file.
Implementations§
Source§impl Writer
impl Writer
Sourcepub fn checkpoint(&mut self, id: Id) -> Result<()>
pub fn checkpoint(&mut self, id: Id) -> Result<()>
Add a checkpoint to the file. The Id commonly points to the root of a
tree of nodes.
In order to be read back, a file must end with a checkpoint.
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnsafeUnpin for Writer
impl UnwindSafe for Writer
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