Enum eetf::Term
[−]
[src]
pub enum Term { Atom(Atom), FixInteger(FixInteger), BigInteger(BigInteger), Float(Float), Pid(Pid), Port(Port), Reference(Reference), ExternalFun(ExternalFun), InternalFun(InternalFun), Binary(Binary), BitBinary(BitBinary), List(List), ImproperList(ImproperList), Tuple(Tuple), Map(Map), }
Term.
Variants
Atom(Atom)
FixInteger(FixInteger)
BigInteger(BigInteger)
Float(Float)
Pid(Pid)
Port(Port)
Reference(Reference)
ExternalFun(ExternalFun)
InternalFun(InternalFun)
Binary(Binary)
BitBinary(BitBinary)
List(List)
ImproperList(ImproperList)
Tuple(Tuple)
Map(Map)
Methods
impl Term
[src]
fn decode<R: Read>(reader: R) -> DecodeResult
Decodes a term.
fn encode<W: Write>(&self, writer: W) -> EncodeResult
Encodes the term.
fn as_match<'a, P>(&'a self, pattern: P) -> Result<P::Output> where
P: Pattern<'a>,
P: Pattern<'a>,
Trait Implementations
impl TryAsRef<Atom> for Term
[src]
fn try_as_ref(&self) -> Option<&Atom>
impl TryAsRef<FixInteger> for Term
[src]
fn try_as_ref(&self) -> Option<&FixInteger>
impl TryAsRef<BigInteger> for Term
[src]
fn try_as_ref(&self) -> Option<&BigInteger>
impl TryAsRef<Float> for Term
[src]
fn try_as_ref(&self) -> Option<&Float>
impl TryAsRef<Pid> for Term
[src]
fn try_as_ref(&self) -> Option<&Pid>
impl TryAsRef<Port> for Term
[src]
fn try_as_ref(&self) -> Option<&Port>
impl TryAsRef<Reference> for Term
[src]
fn try_as_ref(&self) -> Option<&Reference>
impl TryAsRef<ExternalFun> for Term
[src]
fn try_as_ref(&self) -> Option<&ExternalFun>
impl TryAsRef<InternalFun> for Term
[src]
fn try_as_ref(&self) -> Option<&InternalFun>
impl TryAsRef<Binary> for Term
[src]
fn try_as_ref(&self) -> Option<&Binary>
impl TryAsRef<BitBinary> for Term
[src]
fn try_as_ref(&self) -> Option<&BitBinary>
impl TryAsRef<List> for Term
[src]
fn try_as_ref(&self) -> Option<&List>
impl TryAsRef<ImproperList> for Term
[src]
fn try_as_ref(&self) -> Option<&ImproperList>
impl TryAsRef<Tuple> for Term
[src]
fn try_as_ref(&self) -> Option<&Tuple>
impl TryAsRef<Map> for Term
[src]
fn try_as_ref(&self) -> Option<&Map>
impl TryInto<Atom> for Term
[src]
impl TryInto<FixInteger> for Term
[src]
fn try_into(self) -> Result<FixInteger, Self> where
Self: Sized,
Self: Sized,
impl TryInto<BigInteger> for Term
[src]
fn try_into(self) -> Result<BigInteger, Self> where
Self: Sized,
Self: Sized,
impl TryInto<Float> for Term
[src]
impl TryInto<Pid> for Term
[src]
impl TryInto<Port> for Term
[src]
impl TryInto<Reference> for Term
[src]
impl TryInto<ExternalFun> for Term
[src]
fn try_into(self) -> Result<ExternalFun, Self> where
Self: Sized,
Self: Sized,
impl TryInto<InternalFun> for Term
[src]
fn try_into(self) -> Result<InternalFun, Self> where
Self: Sized,
Self: Sized,
impl TryInto<Binary> for Term
[src]
impl TryInto<BitBinary> for Term
[src]
impl TryInto<List> for Term
[src]
impl TryInto<ImproperList> for Term
[src]
fn try_into(self) -> Result<ImproperList, Self> where
Self: Sized,
Self: Sized,
impl TryInto<Tuple> for Term
[src]
impl TryInto<Map> for Term
[src]
impl ToPrimitive for Term
[src]
fn to_i64(&self) -> Option<i64>
Converts the value of self
to an i64
.
fn to_u64(&self) -> Option<u64>
Converts the value of self
to an u64
.
fn to_f64(&self) -> Option<f64>
Converts the value of self
to an f64
.
fn to_isize(&self) -> Option<isize>
Converts the value of self
to an isize
.
fn to_i8(&self) -> Option<i8>
Converts the value of self
to an i8
.
fn to_i16(&self) -> Option<i16>
Converts the value of self
to an i16
.
fn to_i32(&self) -> Option<i32>
Converts the value of self
to an i32
.
fn to_usize(&self) -> Option<usize>
Converts the value of self
to a usize
.
fn to_u8(&self) -> Option<u8>
Converts the value of self
to an u8
.
fn to_u16(&self) -> Option<u16>
Converts the value of self
to an u16
.
fn to_u32(&self) -> Option<u32>
Converts the value of self
to an u32
.
fn to_f32(&self) -> Option<f32>
Converts the value of self
to an f32
.
impl ToBigInt for Term
[src]
impl ToBigUint for Term
[src]
fn to_biguint(&self) -> Option<BigUint>
Converts the value of self
to a BigUint
.
impl Debug for Term
[src]
impl PartialEq for Term
[src]
fn eq(&self, __arg_0: &Term) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Term) -> bool
This method tests for !=
.
impl Clone for Term
[src]
fn clone(&self) -> Term
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Display for Term
[src]
impl From<Atom> for Term
[src]
impl From<FixInteger> for Term
[src]
fn from(x: FixInteger) -> Self
Performs the conversion.
impl From<BigInteger> for Term
[src]
fn from(x: BigInteger) -> Self
Performs the conversion.
impl From<Float> for Term
[src]
impl From<Pid> for Term
[src]
impl From<Port> for Term
[src]
impl From<Reference> for Term
[src]
impl From<ExternalFun> for Term
[src]
fn from(x: ExternalFun) -> Self
Performs the conversion.
impl From<InternalFun> for Term
[src]
fn from(x: InternalFun) -> Self
Performs the conversion.
impl From<Binary> for Term
[src]
impl From<BitBinary> for Term
[src]
impl From<List> for Term
[src]
impl From<ImproperList> for Term
[src]
fn from(x: ImproperList) -> Self
Performs the conversion.