[][src]Enum erlang_term::raw_term::RawTerm

pub enum RawTerm {
    SmallInt(u8),
    Int(i32),
    SmallTuple(Vec<RawTerm>),
    LargeTuple(Vec<RawTerm>),
    Map(Vec<(RawTerm, RawTerm)>),
    Nil,
    String(Vec<u8>),
    List(Vec<RawTerm>),
    Improper(Box<RawTerm>),
    Binary(Vec<u8>),
    SmallBigInt(BigInt),
    LargeBigInt(BigInt),
    Pid {
        node: Box<RawTerm>,
        id: u32,
        serial: u32,
        creation: u8,
    },
    Port {
        node: Box<RawTerm>,
        id: u32,
        creation: u8,
    },
    Ref {
        node: Box<RawTerm>,
        id: Vec<u32>,
        creation: u8,
    },
    Function {
        size: u32,
        arity: u8,
        uniq: [u8; 16],
        index: u32,
        module: Box<RawTerm>,
        old_index: Box<RawTerm>,
        old_uniq: Box<RawTerm>,
        pid: Box<RawTerm>,
        free_var: Vec<RawTerm>,
    },
    Float(f64),
    Atom(String),
    SmallAtom(String),
    AtomDeprecated(String),
    SmallAtomDeprecated(String),
}

Variants

SmallInt(u8)
Int(i32)
SmallTuple(Vec<RawTerm>)
LargeTuple(Vec<RawTerm>)
Nil
String(Vec<u8>)
List(Vec<RawTerm>)
Improper(Box<RawTerm>)
Binary(Vec<u8>)
SmallBigInt(BigInt)
LargeBigInt(BigInt)
Pid

Fields of Pid

node: Box<RawTerm>id: u32serial: u32creation: u8
Port

Fields of Port

node: Box<RawTerm>id: u32creation: u8
Ref

Fields of Ref

node: Box<RawTerm>id: Vec<u32>creation: u8
Function

Fields of Function

size: u32arity: u8uniq: [u8; 16]index: u32module: Box<RawTerm>old_index: Box<RawTerm>old_uniq: Box<RawTerm>pid: Box<RawTerm>free_var: Vec<RawTerm>
Float(f64)
Atom(String)
SmallAtom(String)
AtomDeprecated(String)
SmallAtomDeprecated(String)

Implementations

impl RawTerm[src]

pub fn from_bytes(input: &[u8]) -> Result<RawTerm, NomErr<(&[u8], ErrorKind)>>[src]

pub fn to_bytes(self) -> Vec<u8>[src]

pub fn is_atom(&self) -> bool[src]

pub fn is_string(&self) -> bool[src]

pub fn is_string_like(&self) -> bool[src]

pub fn is_integer(&self) -> bool[src]

pub fn is_atom_pair(&self) -> bool[src]

pub fn is_string_map(&self) -> bool[src]

pub fn as_atom(self) -> Option<String>[src]

pub fn as_string(self) -> Option<String>[src]

pub fn as_string_like(self) -> Option<String>[src]

pub fn as_atom_pair(self) -> Option<(String, RawTerm)>[src]

Trait Implementations

impl Clone for RawTerm[src]

impl Debug for RawTerm[src]

impl From<RawTerm> for Term[src]

impl From<Term> for RawTerm[src]

impl PartialEq<RawTerm> for RawTerm[src]

impl PartialOrd<RawTerm> for RawTerm[src]

impl StructuralPartialEq for RawTerm[src]

Auto Trait Implementations

impl RefUnwindSafe for RawTerm

impl Send for RawTerm

impl Sync for RawTerm

impl Unpin for RawTerm

impl UnwindSafe for RawTerm

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, U> Into<U> for T where
    U: From<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.