pub struct Granule { /* private fields */ }
Implementations§
source§impl Granule
impl Granule
pub fn state(&self) -> u8
pub fn set_state(&mut self, state: u8) -> Result<(), Error>
pub fn content_mut<T>(&mut self) -> Result<SafetyAssumed<T>, Error>where
T: Content + SafetyChecked + SafetyAssured,
pub fn new_uninit_with<T>(
&mut self,
value: T
) -> Result<SafetyAssumed<T>, Error>where
T: Content + SafetyChecked + SafetyAssured,
pub fn content<T>(&self) -> Result<SafetyAssumed<T>, Error>where
T: Content + SafetyChecked + SafetyAssured,
Auto Trait Implementations§
impl Freeze for Granule
impl RefUnwindSafe for Granule
impl Send for Granule
impl Sync for Granule
impl Unpin for Granule
impl UnwindSafe for Granule
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