pub struct null { /* private fields */ }
Expand description
value of Null type
Methods from Deref<Target = Any>§
Sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Returns true if the type is an integer.
Sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if the type is a boolean.
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Returns true if the type is a function.
Sourcepub fn to_integer(&self) -> i64
pub fn to_integer(&self) -> i64
Converts the type to an integer.
Sourcepub fn to_boolean(&self) -> bool
pub fn to_boolean(&self) -> bool
Converts the type to a boolean.
Sourcepub fn to_function(&self) -> Function
pub fn to_function(&self) -> Function
Converts the type to a function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for null
impl RefUnwindSafe for null
impl Send for null
impl Sync for null
impl Unpin for null
impl UnwindSafe for null
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