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§
Source§impl<const N: usize> FixedStorage<N>
impl<const N: usize> FixedStorage<N>
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more