Skip to main content

FactInterface

Trait FactInterface 

Source
pub trait FactInterface:
    Debug
    + Display
    + Clone {
    type Dim: DimInterface;

    // Required methods
    fn datum_type(&self) -> Result<DatumType>;
    fn rank(&self) -> Result<usize>;
    fn dim(&self, axis: usize) -> Result<Self::Dim>;

    // Provided method
    fn dims(&self) -> Result<impl Iterator<Item = Self::Dim>> { ... }
}

Required Associated Types§

Required Methods§

Source

fn datum_type(&self) -> Result<DatumType>

Source

fn rank(&self) -> Result<usize>

Source

fn dim(&self, axis: usize) -> Result<Self::Dim>

Provided Methods§

Source

fn dims(&self) -> Result<impl Iterator<Item = Self::Dim>>

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§