Trait symtern::traits::Len [] [src]

pub trait Len {
    fn len(&self) -> usize;
    fn is_full(&self) -> bool;
    fn is_empty(&self) -> bool;
}

Trait for use with interners can report the number of values they contain.

Required Methods

Fetch the number of values contained in the interner.

Check if the number of interned symbols has reached the maximum allowed.

Check if the interner is "empty", i.e. has zero stored values.

Implementors