Enum arret_runtime::boxed::TypeTag[][src]

#[repr(u8)]
pub enum TypeTag {
Show variants Float, Int, Char, Str, Sym, Pair, Nil, True, False, Vector, FunThunk, Record, Set, Map,
}

Tag byte identifying top-level types

Variants

Float
Int
Char
Str
Sym
Pair
Nil
True
False
Vector
FunThunk
Record
Set
Map

Implementations

impl TypeTag[src]

pub fn to_boxed_abi_type(self) -> BoxedAbiType[src]

Returns the boxed ABI type corresponding to this type tag

pub fn to_const_header(self) -> Header[src]

Returns a header for a constant boxed values of this type

pub fn to_heap_header(self, box_size: BoxSize) -> Header[src]

Returns a header for heap allocated values of this type and size

impl TypeTag[src]

pub fn to_str(self) -> &'static str[src]

Returns a string representation for the type

Trait Implementations

impl Clone for TypeTag[src]

impl Debug for TypeTag[src]

impl From<TypeTag> for BoxedAbiType[src]

impl From<TypeTag> for AbiType[src]

impl From<TypeTag> for ParamAbiType[src]

impl From<TypeTag> for RetAbiType[src]

impl Hash for TypeTag[src]

impl PartialEq<TypeTag> for TypeTag[src]

impl Copy for TypeTag[src]

impl Eq for TypeTag[src]

impl StructuralEq for TypeTag[src]

impl StructuralPartialEq for TypeTag[src]

Auto Trait Implementations

impl RefUnwindSafe for TypeTag

impl Send for TypeTag

impl Sync for TypeTag

impl Unpin for TypeTag

impl UnwindSafe for TypeTag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> HashInHeap for T where
    T: Hash
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PartialEqInHeap for T where
    T: PartialEq<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.