pub struct Weighed<T> {
pub object: T,
pub weight: f64,
}Expand description
Defines an object with assigned weight
Fields§
§object: T§weight: f64pub struct Weighed<T> {
pub object: T,
pub weight: f64,
}Defines an object with assigned weight
object: T§weight: f64