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§
sourcefn postfactor(&self) -> String
fn postfactor(&self) -> String
The postfactor part of the symbol.
sourcefn multiplicity(&self) -> Option<usize>
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.