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

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§