pub struct DefaultStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for DefaultStorage
impl Debug for DefaultStorage
Source§impl Default for DefaultStorage
impl Default for DefaultStorage
Source§impl Storage for DefaultStorage
impl Storage for DefaultStorage
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 Freeze for DefaultStorage
impl RefUnwindSafe for DefaultStorage
impl !Send for DefaultStorage
impl !Sync for DefaultStorage
impl Unpin for DefaultStorage
impl UnsafeUnpin for DefaultStorage
impl UnwindSafe for DefaultStorage
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