pub trait Weight:
Copy
+ NumAssign
+ NumCast
+ PartialOrd
+ Sum
+ Debug { }Expand description
Any general numerical type, such as u32, usize, f64. The type W of item weights in a WeightedList<V,W> implement this trait.
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.