pub struct StreamAdapter;Expand description
Adapter for streaming operations
Implementations§
Source§impl StreamAdapter
impl StreamAdapter
Sourcepub fn stream_encode<R: Read>(
reader: R,
config: &ReversibleVSAConfig,
chunk_size: usize,
) -> Result<Vec<SparseVec>>
pub fn stream_encode<R: Read>( reader: R, config: &ReversibleVSAConfig, chunk_size: usize, ) -> Result<Vec<SparseVec>>
Stream process data: encode in chunks
Sourcepub fn stream_decode<W: Write>(
vectors: &[SparseVec],
config: &ReversibleVSAConfig,
expected_size: usize,
writer: W,
) -> Result<()>
pub fn stream_decode<W: Write>( vectors: &[SparseVec], config: &ReversibleVSAConfig, expected_size: usize, writer: W, ) -> Result<()>
Stream process vectors: decode and write
Auto Trait Implementations§
impl Freeze for StreamAdapter
impl RefUnwindSafe for StreamAdapter
impl Send for StreamAdapter
impl Sync for StreamAdapter
impl Unpin for StreamAdapter
impl UnwindSafe for StreamAdapter
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