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