pub struct UnRef(_);Expand description
Decrements the reference count on the held object, deallocating it if it’s the last ref.
Trait Implementations
sourceimpl PtrWrapper for UnRef
impl PtrWrapper for UnRef
fn new(ptr: NonNull<godot_object>) -> Self
fn as_non_null(&self) -> NonNull<godot_object>
fn as_ptr(&self) -> *mut godot_object
Auto Trait Implementations
impl RefUnwindSafe for UnRef
impl !Send for UnRef
impl !Sync for UnRef
impl Unpin for UnRef
impl UnwindSafe for UnRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more