[][src]Struct big_brain::Choice

pub struct Choice {
    pub name: String,
    pub measure: Box<dyn Measure>,
    pub considerations: Vec<ConsiderationEnt>,
    pub action: ActionEnt,
}

Fields

name: Stringmeasure: Box<dyn Measure>considerations: Vec<ConsiderationEnt>action: ActionEnt

Implementations

impl Choice[src]

pub fn calculate<'a>(
    &self,
    considerations: &ReadStorage<'a, Consideration>
) -> f32
[src]

Trait Implementations

impl Debug for Choice[src]

Auto Trait Implementations

impl !RefUnwindSafe for Choice

impl Send for Choice

impl Sync for Choice

impl Unpin for Choice

impl !UnwindSafe for Choice

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.