Trait Utility

Source
pub trait Utility<T> {
    // Required method
    fn utility(&self, obj: &T) -> f64;
}
Expand description

Implemented by objects that measure utility of an object.

Required Methods§

Source

fn utility(&self, obj: &T) -> f64

Computes the utility of an object.

Implementations on Foreign Types§

Source§

impl<T, U: Utility<T>> Utility<T> for Vec<U>

Sums up utility from multiple sub-terms.

Source§

fn utility(&self, obj: &T) -> f64

Implementors§