pub enum NonObjectKind {
Literal,
IntrinsicPrimitive,
MaybeObject,
}Expand description
Classification for checking if a type is definitely not an object. Used by instanceof and typeof narrowing.
Variants§
Literal
Literal type (always non-object)
IntrinsicPrimitive
Intrinsic primitive type (void, undefined, null, boolean, number, string, bigint, symbol, never)
MaybeObject
Object or potentially object type
Trait Implementations§
Source§impl Clone for NonObjectKind
impl Clone for NonObjectKind
Source§fn clone(&self) -> NonObjectKind
fn clone(&self) -> NonObjectKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NonObjectKind
impl RefUnwindSafe for NonObjectKind
impl Send for NonObjectKind
impl Sync for NonObjectKind
impl Unpin for NonObjectKind
impl UnsafeUnpin for NonObjectKind
impl UnwindSafe for NonObjectKind
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