Struct gdnative_core::object::Null
source · [−]pub struct Null<T>(_);
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
sourceimpl<T: GodotObject> Null<T>
impl<T: GodotObject> Null<T>
Trait Implementations
sourceimpl<'a, T: GodotObject> AsVariant for Null<T>
impl<'a, T: GodotObject> AsVariant for Null<T>
type Target = T
impl<'a, T: GodotObject> AsArg<T> for Null<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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