pub enum NullForm {
LooseNull,
LooseUndefined,
StrictNull,
StrictUndefined,
TypeofUndefined,
VoidZero,
}Expand description
空值判别的形态。
Variants§
LooseNull
== null
LooseUndefined
== undefined
StrictNull
=== null
StrictUndefined
=== undefined
TypeofUndefined
typeof x === "undefined"
VoidZero
=== void 0
Implementations§
Trait Implementations§
impl Copy for NullForm
impl Eq for NullForm
impl StructuralPartialEq for NullForm
Auto Trait Implementations§
impl Forget for NullForm
impl Freeze for NullForm
impl Move for NullForm
impl RefUnwindSafe for NullForm
impl Send for NullForm
impl Sync for NullForm
impl Unpin for NullForm
impl UnsafeUnpin for NullForm
impl UnwindSafe for NullForm
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