pub struct UnRef(/* private fields */);
Expand description
Decrements the reference count on the held object, deallocating it if it’s the last ref.
Trait Implementations§
Source§impl 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 Freeze for UnRef
impl RefUnwindSafe for UnRef
impl !Send for UnRef
impl !Sync for UnRef
impl Unpin for UnRef
impl UnwindSafe for UnRef
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