pub enum BuiltinType {
Number,
Boolean,
String,
Object,
Null,
Undefined,
Never,
Any,
Unknown,
BigInt,
Symbol,
}
Expand description
The built-in types.
Variants§
Number
The number
type.
Boolean
The boolean
type.
String
The string
type.
Object
The object
type.
Null
The null
type.
Undefined
The undefined
type.
Never
The never
type.
Any
The any
type.
Unknown
The unknown
type.
BigInt
The bigint
type.
Symbol
The symbol
type.
Implementations§
Trait Implementations§
Source§impl Clone for BuiltinType
impl Clone for BuiltinType
Source§fn clone(&self) -> BuiltinType
fn clone(&self) -> BuiltinType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BuiltinType
impl Debug for BuiltinType
Source§impl Display for BuiltinType
impl Display for BuiltinType
Source§impl From<BuiltinType> for BuiltinType
impl From<BuiltinType> for BuiltinType
Source§fn from(builtin: BuiltinType) -> Self
fn from(builtin: BuiltinType) -> Self
Converts to this type from the input type.
Source§impl From<BuiltinType> for Type
impl From<BuiltinType> for Type
Source§fn from(value: BuiltinType) -> Self
fn from(value: BuiltinType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BuiltinType
impl PartialEq for BuiltinType
impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
impl Freeze for BuiltinType
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnwindSafe for BuiltinType
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