Trait AgentExtTrait

Source
pub trait AgentExtTrait<V: Clone>: Sized {
    type Exec;
    type Ix;

    // Required methods
    fn reset_core<R: Rng>(
        ops: &mut MyOpinions<V>,
        decision: &mut Decision<V>,
        exec: &Self::Exec,
        rng: &mut R,
    );
    fn reset<R: Rng>(&mut self, idx: usize, exec: &Self::Exec, rng: &mut R);
    fn visit_prob<R: Rng>(&mut self, exec: &Self::Exec, rng: &mut R) -> V;
    fn informer_trusts<'a, R: Rng>(
        &mut self,
        ins: &mut InstanceWrapper<'a, Self::Exec, V, R, Self::Ix>,
        info_idx: InfoIdx,
    ) -> Trusts<V>;
    fn sharer_trusts<'a, R: Rng>(
        &mut self,
        ins: &mut InstanceWrapper<'a, Self::Exec, V, R, Self::Ix>,
        info_idx: InfoIdx,
    ) -> Trusts<V>;
}

Required Associated Types§

Required Methods§

Source

fn reset_core<R: Rng>( ops: &mut MyOpinions<V>, decision: &mut Decision<V>, exec: &Self::Exec, rng: &mut R, )

Source

fn reset<R: Rng>(&mut self, idx: usize, exec: &Self::Exec, rng: &mut R)

Source

fn visit_prob<R: Rng>(&mut self, exec: &Self::Exec, rng: &mut R) -> V

Source

fn informer_trusts<'a, R: Rng>( &mut self, ins: &mut InstanceWrapper<'a, Self::Exec, V, R, Self::Ix>, info_idx: InfoIdx, ) -> Trusts<V>

Source

fn sharer_trusts<'a, R: Rng>( &mut self, ins: &mut InstanceWrapper<'a, Self::Exec, V, R, Self::Ix>, info_idx: InfoIdx, ) -> Trusts<V>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§