pub struct Null;Expand description
A unit type representing a null value. 表示空值的单元类型
This type is useful for places where a concrete type is required but no actual data needs to be stored. 当需要具体类型但实际上不需要存储数据时,此类型非常有用
Trait Implementations§
Source§impl Ord for Null
impl Ord for Null
Source§impl PartialOrd for Null
impl PartialOrd for Null
impl Copy for Null
impl Eq for Null
impl StructuralPartialEq for Null
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