pub enum Intrinsic {
Assert,
JsonStringify,
JsonParse,
BigIntFromString,
ToString,
}Variants§
Assert
assert(cond, msg) — unreachable on false; will throw Error post-exceptions.
JsonStringify
JSON.stringify(x) — only the call form is accepted; bare JSON ref is rejected.
JsonParse
JSON.parse(s) — returns unknown; use as T for runtime validation.
BigIntFromString
BigInt.fromString(s) — decimal parse via submilli:bigint.fromString; throws on failure.
ToString
A template interpolation whose value may be null, undefined or of a
type only known at run time — JavaScript’s ToString, as ${x} performs.
Implementations§
Trait Implementations§
impl Copy for Intrinsic
impl Eq for Intrinsic
impl StructuralPartialEq for Intrinsic
Auto Trait Implementations§
impl Freeze for Intrinsic
impl RefUnwindSafe for Intrinsic
impl Send for Intrinsic
impl Sync for Intrinsic
impl Unpin for Intrinsic
impl UnsafeUnpin for Intrinsic
impl UnwindSafe for Intrinsic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.