pub enum Primitive {
String,
Number,
Boolean,
Null,
Undefined,
Void,
Never,
Any,
Unknown,
BigInt,
}Expand description
Primitive TypeScript types.
Variants§
String
The string type.
Number
The number type.
Boolean
The boolean type.
Null
The null type.
Undefined
The undefined type.
Void
The void type (for functions that don’t return a value).
Never
The never type (for functions that never return).
Any
The any type (escape hatch, use sparingly).
Unknown
The unknown type (type-safe alternative to any).
BigInt
The bigint type.
Implementations§
Trait Implementations§
impl Copy for Primitive
impl Eq for Primitive
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl Freeze for Primitive
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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