Trait qsym2::chartab::chartab_symbols::LinearSpaceSymbol

source ·
pub trait LinearSpaceSymbol: MathematicalSymbol + FromStr {
    // Required methods
    fn dimensionality(&self) -> usize;
    fn set_dimensionality(&mut self, dim: usize) -> bool;
}
Expand description

Trait for symbols describing linear spaces.

Required Methods§

source

fn dimensionality(&self) -> usize

The dimensionality of the linear space.

source

fn set_dimensionality(&mut self, dim: usize) -> bool

Sets the dimensionality of the linear space for the symbol.

§Arguments
  • dim - The dimensionality to be set.
§Returns

Returns true if the dimensionality has been successfully set.

Object Safety§

This trait is not object safe.

Implementors§