pub struct PtrOrNull<'lib, T: 'lib> { /* private fields */ }Expand description
Safe wrapper around const pointer.
It is recommended only for obtaining pointers that can have null value.
Implementations§
Trait Implementations§
Source§impl<'lib, T> FromRawResult for PtrOrNull<'lib, T>
impl<'lib, T> FromRawResult for PtrOrNull<'lib, T>
impl<'lib, T: Copy + 'lib> Copy for PtrOrNull<'lib, T>
impl<'lib, T: Send> Send for PtrOrNull<'lib, T>
impl<'lib, T: Sync> Sync for PtrOrNull<'lib, T>
Auto Trait Implementations§
impl<'lib, T> Freeze for PtrOrNull<'lib, T>
impl<'lib, T> RefUnwindSafe for PtrOrNull<'lib, T>where
T: RefUnwindSafe,
impl<'lib, T> Unpin for PtrOrNull<'lib, T>
impl<'lib, T> UnwindSafe for PtrOrNull<'lib, 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