pub struct MemoryStorage { /* private fields */ }Expand description
In-memory storage adapter
Implementations§
Source§impl MemoryStorage
impl MemoryStorage
Trait Implementations§
Source§impl Place for MemoryStorage
impl Place for MemoryStorage
Source§fn place(&mut self, point: Point, blob: Blob) -> PlaceResult<Id>
fn place(&mut self, point: Point, blob: Blob) -> PlaceResult<Id>
Place a point with its payload in the space Read more
Source§fn place_with_id(&mut self, id: Id, point: Point, blob: Blob) -> PlaceResult<()>
fn place_with_id(&mut self, id: Id, point: Point, blob: Blob) -> PlaceResult<()>
Place a point with a specific ID Read more
Source§fn size_bytes(&self) -> usize
fn size_bytes(&self) -> usize
Get current storage size in bytes
Auto Trait Implementations§
impl Freeze for MemoryStorage
impl RefUnwindSafe for MemoryStorage
impl Send for MemoryStorage
impl Sync for MemoryStorage
impl Unpin for MemoryStorage
impl UnsafeUnpin for MemoryStorage
impl UnwindSafe for MemoryStorage
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