pub struct MaxCell(/* private fields */);Expand description
A cell of a byte array equivalent to MaxAligned.
Implementations§
Source§impl MaxCell
impl MaxCell
Sourcepub fn new(contents: MaxAligned) -> Self
pub fn new(contents: MaxAligned) -> Self
Create a vector from values initialized synchronously.
Sourcepub fn set(&self, newval: &Self)
pub fn set(&self, newval: &Self)
Overwrite the contents with new information from another cell.
Sourcepub fn get(&self) -> MaxAligned
pub fn get(&self) -> MaxAligned
Read the current contents from this cell into an owned value.
Sourcepub fn into_inner(self) -> MaxAligned
pub fn into_inner(self) -> MaxAligned
Unwrap an owned value.
Auto Trait Implementations§
impl !Freeze for MaxCell
impl !RefUnwindSafe for MaxCell
impl !Sync for MaxCell
impl Send for MaxCell
impl Unpin for MaxCell
impl UnsafeUnpin for MaxCell
impl UnwindSafe for MaxCell
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