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 !Send for DefaultStorage
impl !Sync for DefaultStorage
impl Freeze for DefaultStorage
impl RefUnwindSafe for DefaultStorage
impl Unpin for DefaultStorage
impl UnsafeUnpin for DefaultStorage
impl UnwindSafe for DefaultStorage
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