Trait NumberTyped

Source
pub trait NumberTyped {
    // Required method
    fn number_type(&self) -> NumberType;

    // Provided methods
    fn matches(&self, other: NumberType) -> bool { ... }
    fn match_or_panic(&self, other: NumberType) { ... }
}

Required Methods§

Provided Methods§

Source

fn matches(&self, other: NumberType) -> bool

Source

fn match_or_panic(&self, other: NumberType)

Implementors§