Struct rustler::types::atom::Atom[][src]

pub struct Atom { /* fields omitted */ }

Methods

impl Atom
[src]

Return the atom whose text representation is bytes, like erlang:binary_to_atom/2.

Errors

Error::BadArg if bytes.len() > 255.

Return the atom whose text representation is the given string, like erlang:list_to_atom/2.

Errors

Error::BadArg if string contains characters that aren't in Latin-1, or if it's too long. The maximum length is 255 characters.

Trait Implementations

impl PartialEq for Atom
[src]

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

This method tests for !=.

impl Eq for Atom
[src]

impl Clone for Atom
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Atom
[src]

impl Debug for Atom
[src]

Formats the value using the given formatter. Read more

impl Encoder for Atom
[src]

impl<'a> Decoder<'a> for Atom
[src]

impl<'a> PartialEq<Term<'a>> for Atom
[src]

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

This method tests for !=.

impl Sync for Atom
[src]

impl Send for Atom
[src]