[][src]Trait net_ensembles::traits::WithGraph

pub trait WithGraph<T, G> {
    fn at(&self, index: usize) -> &T;
fn at_mut(&mut self, index: usize) -> &mut T;
fn graph(&self) -> &G; }

unify graph ensembles in a trait

Required methods

fn at(&self, index: usize) -> &T

  • access additional information at index

fn at_mut(&mut self, index: usize) -> &mut T

  • mutable access to additional information at index

fn graph(&self) -> &G

  • returns reference to the underlying topology aka, the GenericGraph
  • use this to call functions regarding the topology
Loading content...

Implementors

impl<T, R> WithGraph<T, GenericGraph<T, NodeContainer<T>>> for ErEnsembleC<T, R> where
    T: Node + SerdeStateConform,
    R: Rng
[src]

impl<T, R> WithGraph<T, GenericGraph<T, NodeContainer<T>>> for ErEnsembleM<T, R> where
    T: Node + SerdeStateConform,
    R: Rng
[src]

impl<T, R> WithGraph<T, GenericGraph<T, SwContainer<T>>> for SwEnsemble<T, R> where
    T: Node + SerdeStateConform,
    R: Rng
[src]

Loading content...