pub struct Null<T>(/* private fields */);
Expand description
Represents an explicit null reference in method arguments. This works around type inference
issues with Option
. You may create Null
s with Null::null
or GodotObject::null
.
Implementations§
Trait Implementations§
impl<T: GodotObject> AsArg<T> for Null<T>
Auto Trait Implementations§
impl<T> Freeze for Null<T>
impl<T> RefUnwindSafe for Null<T>where
T: RefUnwindSafe,
impl<T> Send for Null<T>where
T: Send,
impl<T> Sync for Null<T>where
T: Sync,
impl<T> Unpin for Null<T>where
T: Unpin,
impl<T> UnwindSafe for Null<T>where
T: UnwindSafe,
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