Trait utility_programming::Utility [] [src]

pub trait Utility<T> {
    fn utility(&self, obj: &T) -> f64;
}

Implemented by objects that measure utility of an object.

Required Methods

Computes the utility of an object.

Implementations on Foreign Types

impl<T, U: Utility<T>> Utility<T> for Vec<U>
[src]

Sums up utility from multiple sub-terms.

[src]

Implementors