pub struct MemoryIndexBatch { /* private fields */ }Expand description
Atomic scoped semantic-memory indexing batch.
Implementations§
Source§impl MemoryIndexBatch
impl MemoryIndexBatch
pub fn new( scope: MemoryIndexScope, requests: Vec<MemoryIndexRequest>, ) -> Result<Self, MemoryStoreError>
pub fn single(request: MemoryIndexRequest) -> Self
pub fn scope(&self) -> &MemoryIndexScope
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn into_parts(self) -> (MemoryIndexScope, Vec<MemoryIndexRequest>)
Trait Implementations§
Source§impl Clone for MemoryIndexBatch
impl Clone for MemoryIndexBatch
Source§fn clone(&self) -> MemoryIndexBatch
fn clone(&self) -> MemoryIndexBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemoryIndexBatch
impl RefUnwindSafe for MemoryIndexBatch
impl Send for MemoryIndexBatch
impl Sync for MemoryIndexBatch
impl Unpin for MemoryIndexBatch
impl UnsafeUnpin for MemoryIndexBatch
impl UnwindSafe for MemoryIndexBatch
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