#[repr(C)]pub struct OptionBox<T> {
pub ptr: *mut T,
}Expand description
A type alias for Option<Box<T>>.
None value means a null pointer.
Fields§
§ptr: *mut TImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OptionBox<T>
impl<T> RefUnwindSafe for OptionBox<T>where
T: RefUnwindSafe,
impl<T> !Send for OptionBox<T>
impl<T> !Sync for OptionBox<T>
impl<T> Unpin for OptionBox<T>
impl<T> UnwindSafe for OptionBox<T>where
T: RefUnwindSafe,
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