Trait qsym2::chartab::chartab_symbols::MathematicalSymbol

source ·
pub trait MathematicalSymbol: Clone + Hash + Eq + Display {
    // Required methods
    fn main(&self) -> String;
    fn presuper(&self) -> String;
    fn presub(&self) -> String;
    fn postsuper(&self) -> String;
    fn postsub(&self) -> String;
    fn prefactor(&self) -> String;
    fn postfactor(&self) -> String;
    fn multiplicity(&self) -> Option<usize>;
}
Expand description

Trait for general mathematical symbols. See GenericSymbol for the definitions of the parts.

Required Methods§

source

fn main(&self) -> String

The main part of the symbol.

source

fn presuper(&self) -> String

The pre-superscript part of the symbol.

source

fn presub(&self) -> String

The pre-subscript part of the symbol.

source

fn postsuper(&self) -> String

The post-superscript part of the symbol.

source

fn postsub(&self) -> String

The post-subscript part of the symbol.

source

fn prefactor(&self) -> String

The prefactor part of the symbol.

source

fn postfactor(&self) -> String

The postfactor part of the symbol.

source

fn multiplicity(&self) -> Option<usize>

The multiplicity of the symbol which can have different meanings depending on the exact nature of the mathematical symbol.

Object Safety§

This trait is not object safe.

Implementors§