#[repr(C)]pub struct CAnyDropPtr { /* private fields */ }
Implementations§
Source§impl CAnyDropPtr
impl CAnyDropPtr
pub fn new<T: Any>(val: T) -> Self
pub fn raw(ptr: SyncPtr<Void>, drop: extern "C" fn(&mut CAnyDropPtr)) -> Self
pub fn as_ref<T: Any>(&self) -> Result<&T>
pub fn as_mut<T: Any>(&mut self) -> Result<&mut T>
pub fn take<T: Any>(self) -> Result<T>
pub fn ptr(&self) -> &SyncPtr<Void>
pub fn is_null(&self) -> bool
Trait Implementations§
Source§impl Drop for CAnyDropPtr
impl Drop for CAnyDropPtr
Auto Trait Implementations§
impl Freeze for CAnyDropPtr
impl RefUnwindSafe for CAnyDropPtr
impl Send for CAnyDropPtr
impl Sync for CAnyDropPtr
impl Unpin for CAnyDropPtr
impl UnwindSafe for CAnyDropPtr
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