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