pub struct MmapStringArray<const N: usize, const LEN: usize> { /* private fields */ }Expand description
A fixed-size array of fixed-size strings for memory-mapped storage
Implementations§
Source§impl<const N: usize, const LEN: usize> MmapStringArray<N, LEN>
impl<const N: usize, const LEN: usize> MmapStringArray<N, LEN>
Sourcepub fn get_mut(&mut self, index: usize) -> Option<&mut MmapString<LEN>>
pub fn get_mut(&mut self, index: usize) -> Option<&mut MmapString<LEN>>
Get mutable access to a string
Sourcepub fn count_non_empty(&self) -> usize
pub fn count_non_empty(&self) -> usize
Get the number of non-empty strings
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize, const LEN: usize> Freeze for MmapStringArray<N, LEN>
impl<const N: usize, const LEN: usize> RefUnwindSafe for MmapStringArray<N, LEN>
impl<const N: usize, const LEN: usize> Send for MmapStringArray<N, LEN>
impl<const N: usize, const LEN: usize> Sync for MmapStringArray<N, LEN>
impl<const N: usize, const LEN: usize> Unpin for MmapStringArray<N, LEN>
impl<const N: usize, const LEN: usize> UnwindSafe for MmapStringArray<N, LEN>
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