pub trait Weight:
Copy
+ Ord
+ Debug
+ Add<Output = Self>
+ Sub<Output = Self>
+ AddAssign
+ SubAssign
+ 'static {
const ZERO: Self;
const ONE: Self;
// Required methods
fn inf() -> Self;
fn double(self) -> Self;
fn half(self) -> Self;
}Expand description
Edge-weight type for the blossom solver: a signed integer wide enough to hold the caller’s largest weight without overflow.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".