Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§