pub struct FixedStorage<const N: usize> { /* private fields */ }Expand description
A fixed-size static bitmap storage.
N is the number of usize elements in the array.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Debug for FixedStorage<N>
impl<const N: usize> Debug for FixedStorage<N>
Source§impl<const N: usize> Default for FixedStorage<N>
impl<const N: usize> Default for FixedStorage<N>
Source§impl<const N: usize> Storage for FixedStorage<N>
impl<const N: usize> Storage for FixedStorage<N>
Source§fn allocate(&mut self, size: usize) -> Result<(), Status>
fn allocate(&mut self, size: usize) -> Result<(), Status>
Allocates at least
size bytes of storage.Source§fn get_data(&self) -> &[usize]
fn get_data(&self) -> &[usize]
Returns a read-only slice of
usize words to the underlying storage.Source§fn get_data_mut(&mut self) -> &mut [usize]
fn get_data_mut(&mut self) -> &mut [usize]
Returns a mutable slice of
usize words to the underlying storage.Source§const SUPPORTS_GROW: bool = false
const SUPPORTS_GROW: bool = false
True if this storage supports growing.
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedStorage<N>
impl<const N: usize> RefUnwindSafe for FixedStorage<N>
impl<const N: usize> Send for FixedStorage<N>
impl<const N: usize> Sync for FixedStorage<N>
impl<const N: usize> Unpin for FixedStorage<N>
impl<const N: usize> UnsafeUnpin for FixedStorage<N>
impl<const N: usize> UnwindSafe for FixedStorage<N>
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more