pub struct Goal {
pub name: String,
pub state: WorldState,
pub priority: u32,
pub ttl_secs: Option<f32>,
/* private fields */
}Expand description
A named goal with a desired WorldState and a priority.
Higher priority goals pre-empt lower priority ones.
Fields§
§name: String§state: WorldState§priority: u32§ttl_secs: Option<f32>If set, this goal expires after ttl_secs simulation seconds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Goal
impl RefUnwindSafe for Goal
impl Send for Goal
impl Sync for Goal
impl Unpin for Goal
impl UnsafeUnpin for Goal
impl UnwindSafe for Goal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more