pub struct Agent<V> {
ops: MyOpinions<V>,
infos_accessed: BTreeSet<usize>,
decision: Decision<V>,
}Fields§
§ops: MyOpinions<V>§infos_accessed: BTreeSet<usize>§decision: Decision<V>Implementations§
Source§impl<V> Agent<V>
impl<V> Agent<V>
pub fn ops(&self) -> &MyOpinions<V>
fn clear(&mut self)
pub fn reset<F>(&mut self, f: F)
pub fn is_willing_selfish(&self) -> bool
pub fn progress_selfish_status(&mut self) -> bool
pub fn read_info( &mut self, info: &Info<'_, V>, trusts: Trusts<V>, ) -> BehaviorByInfo
pub fn set_info_opinions(&mut self, info: &Info<'_, V>, trusts: Trusts<V>)
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Agent<V>where
V: Freeze,
impl<V> RefUnwindSafe for Agent<V>where
V: RefUnwindSafe,
impl<V> Send for Agent<V>where
V: Send,
impl<V> Sync for Agent<V>where
V: Sync,
impl<V> Unpin for Agent<V>where
V: Unpin,
impl<V> UnwindSafe for Agent<V>where
V: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more