pub struct AmemWriter { /* private fields */ }Expand description
Writer for .amem binary files.
Implementations§
Source§impl AmemWriter
impl AmemWriter
Sourcepub fn new(dimension: usize) -> Self
pub fn new(dimension: usize) -> Self
Create a new writer with the given feature vector dimension.
Sourcepub fn write_to_file(&self, graph: &MemoryGraph, path: &Path) -> AmemResult<()>
pub fn write_to_file(&self, graph: &MemoryGraph, path: &Path) -> AmemResult<()>
Write a complete MemoryGraph to an .amem file.
Sourcepub fn write_to(
&self,
graph: &MemoryGraph,
writer: &mut impl Write,
) -> AmemResult<()>
pub fn write_to( &self, graph: &MemoryGraph, writer: &mut impl Write, ) -> AmemResult<()>
Write a complete MemoryGraph to any writer.
Auto Trait Implementations§
impl Freeze for AmemWriter
impl RefUnwindSafe for AmemWriter
impl Send for AmemWriter
impl Sync for AmemWriter
impl Unpin for AmemWriter
impl UnsafeUnpin for AmemWriter
impl UnwindSafe for AmemWriter
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