pub trait ShortestPathSemiRing {
type T: Clone + Ord;
// Required methods
fn source() -> Self::T;
fn inf() -> Self::T;
fn mul(x: &Self::T, y: &Self::T) -> Self::T;
fn add_assign(x: &mut Self::T, y: &Self::T) -> bool;
}
Required Associated Types§
Required Methods§
fn source() -> Self::T
fn inf() -> Self::T
fn mul(x: &Self::T, y: &Self::T) -> Self::T
fn add_assign(x: &mut Self::T, y: &Self::T) -> bool
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.