Enum camo_typescript::BuiltinType
source · 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 copy 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 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<BuiltinType> for BuiltinType
impl PartialEq<BuiltinType> for BuiltinType
source§fn eq(&self, other: &BuiltinType) -> bool
fn eq(&self, other: &BuiltinType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
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