Struct eetf::List [] [src]

pub struct List {
    pub elements: Vec<Term>,
}

List.

Fields

elements: Vec<Term>

Methods

impl List
[src]

fn nil() -> Self

Returns a nil value (i.e., an empty list).

fn is_nil(&self) -> bool

Returns true if it is nil value, otherwise false.

Trait Implementations

impl Clone for List
[src]

fn clone(&self) -> List

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 PartialEq for List
[src]

fn eq(&self, __arg_0: &List) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &List) -> bool

This method tests for !=.

impl Debug for List
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for List
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Vec<Term>> for List
[src]

fn from(elements: Vec<Term>) -> Self

Performs the conversion.