pub struct SafeObject { /* private fields */ }Expand description
Example 5: Real-world pattern - safe object lifecycle
Implementations§
Auto Trait Implementations§
impl Freeze for SafeObject
impl RefUnwindSafe for SafeObject
impl Send for SafeObject
impl Sync for SafeObject
impl Unpin for SafeObject
impl UnwindSafe for SafeObject
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