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

pub struct NifAtom { /* fields omitted */ }

Methods

impl NifAtom
[src]

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

Errors

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

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

Errors

NifError::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 NifAtom
[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 NifAtom
[src]

impl Clone for NifAtom
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for NifAtom
[src]

impl Debug for NifAtom
[src]

Formats the value using the given formatter.

impl NifEncoder for NifAtom
[src]

impl<'a> NifDecoder<'a> for NifAtom
[src]

impl<'a> PartialEq<NifTerm<'a>> for NifAtom
[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 NifAtom
[src]

impl Send for NifAtom
[src]