pub trait Dimension<'a, S: Summary>: Clone {
// Required methods
fn zero(cx: S::Context<'_>) -> Self;
fn add_summary(&mut self, summary: &'a S, cx: S::Context<'_>);
// Provided method
fn from_summary(summary: &'a S, cx: S::Context<'_>) -> Self { ... }
}
Expand description
Required Methods§
fn zero(cx: S::Context<'_>) -> Self
fn add_summary(&mut self, summary: &'a S, cx: S::Context<'_>)
Provided Methods§
fn from_summary(summary: &'a S, cx: S::Context<'_>) -> Self
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.