pub struct BoundaryContext {
pub reinforcement_count: u64,
pub age: u64,
pub trust: f64,
}Expand description
Context for boundary modulation (Dissolve primitive).
Fields§
§reinforcement_count: u64How many of this agent’s contributions have been reinforced by others.
age: u64How long the agent has been alive (in ticks).
trust: f64Trust level from the colony (0.0-1.0).
Trait Implementations§
Source§impl Clone for BoundaryContext
impl Clone for BoundaryContext
Source§fn clone(&self) -> BoundaryContext
fn clone(&self) -> BoundaryContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BoundaryContext
impl RefUnwindSafe for BoundaryContext
impl Send for BoundaryContext
impl Sync for BoundaryContext
impl Unpin for BoundaryContext
impl UnwindSafe for BoundaryContext
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