pub struct MemoryRetrievalIndex<T> {
pub ids: Vec<FactId>,
pub by_id: BTreeMap<FactId, MemoryFragment<T>>,
pub cursor: MemoryRetrievalCursor,
}Expand description
MemoryRetrievalIndex data container.
Fields§
§ids: Vec<FactId>ids field for ids.
by_id: BTreeMap<FactId, MemoryFragment<T>>by_id field for by id.
cursor: MemoryRetrievalCursorcursor field for cursor.
Trait Implementations§
Source§impl<T: Clone> Clone for MemoryRetrievalIndex<T>
impl<T: Clone> Clone for MemoryRetrievalIndex<T>
Source§fn clone(&self) -> MemoryRetrievalIndex<T>
fn clone(&self) -> MemoryRetrievalIndex<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for MemoryRetrievalIndex<T>
impl<T: Debug> Debug for MemoryRetrievalIndex<T>
Source§impl<T: PartialEq> PartialEq for MemoryRetrievalIndex<T>
impl<T: PartialEq> PartialEq for MemoryRetrievalIndex<T>
impl<T> StructuralPartialEq for MemoryRetrievalIndex<T>
Auto Trait Implementations§
impl<T> Freeze for MemoryRetrievalIndex<T>
impl<T> RefUnwindSafe for MemoryRetrievalIndex<T>where
T: RefUnwindSafe,
impl<T> Send for MemoryRetrievalIndex<T>where
T: Send,
impl<T> Sync for MemoryRetrievalIndex<T>where
T: Sync,
impl<T> Unpin for MemoryRetrievalIndex<T>
impl<T> UnsafeUnpin for MemoryRetrievalIndex<T>
impl<T> UnwindSafe for MemoryRetrievalIndex<T>where
T: RefUnwindSafe,
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