pub enum JsType {
Undefined,
Null,
Boolean,
Number,
BigInt,
String,
Object,
Array,
Function,
Unknown,
}Expand description
JavaScript type representation for type-directed code generation.
Variants§
Undefined
undefined
Null
null
Boolean
boolean
Number
number (64-bit float)
BigInt
bigint (arbitrary-precision integer, used for Nat)
String
string
Object
object (heap-allocated record or constructor)
Array
Array (JS Array)
Function
function
Unknown
Unknown or polymorphic type
Trait Implementations§
impl Eq for JsType
impl StructuralPartialEq for JsType
Auto Trait Implementations§
impl Freeze for JsType
impl RefUnwindSafe for JsType
impl Send for JsType
impl Sync for JsType
impl Unpin for JsType
impl UnsafeUnpin for JsType
impl UnwindSafe for JsType
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