pub struct nil;Expand description
The type of the absence of a value.
nil has a single value, also called nil, whose main property is to
be different from every other value. It usually represents a missing or
deleted value: assigning nil to a table field removes that field, and
reading a variable that was never assigned yields nil.
In a condition, nil (together with false) counts as false; every
other value counts as true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for nil
impl RefUnwindSafe for nil
impl Send for nil
impl Sync for nil
impl Unpin for nil
impl UnsafeUnpin for nil
impl UnwindSafe for nil
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