AtomExt

Trait AtomExt 

Source
pub trait AtomExt {
    // Required methods
    fn size(&self) -> usize;
    fn idents(&self) -> RVec<Ident>;
    fn contains_ident(&self, ident: Ident) -> bool;
    fn find_symbol_size(&self, ident: Ident) -> ROption<usize>;
}
Expand description

Methods for Atom.

Required Methods§

Source

fn size(&self) -> usize

Returns the size of the atomic mapping expression.

Source

fn idents(&self) -> RVec<Ident>

Returns the idents contained in this atom.

Source

fn contains_ident(&self, ident: Ident) -> bool

Returns true if this atom contains the given ident (recursively).

Source

fn find_symbol_size(&self, ident: Ident) -> ROption<usize>

Returns the original declared size of the given ident’s Symbol.

Implementors§