pub struct Granule { /* private fields */ }Implementations§
Source§impl Granule
impl Granule
pub fn inc_count(&mut self)
pub fn dec_count(&mut self)
pub fn load_count(&self) -> u8
pub fn num_children(&self) -> usize
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,
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Granule
impl RefUnwindSafe for Granule
impl Send for Granule
impl Sync for Granule
impl Unpin for Granule
impl UnsafeUnpin 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