[−][src]Enum net_ensembles::er_c::ErStepC
Variants
nothing was changed
an edge was added
an edge was removed
GError(GraphErrors)
a GraphError occured and is wrapped here
Implementations
impl ErStepC
[src]
pub fn is_valid(&self) -> bool
[src]
true
if self
is not GError
variant
pub fn valid_or_panic(&self)
[src]
panic!
if self
is GError
variant
pub fn valid_or_panic_msg(&self, msg: &str)
[src]
panic!(msg)
if self
is GError
variant
Trait Implementations
impl Clone for ErStepC
[src]
impl Debug for ErStepC
[src]
impl<T, R> MarkovChain<ErStepC, ErStepC> for ErEnsembleC<T, R> where
T: Node + SerdeStateConform,
R: Rng,
[src]
T: Node + SerdeStateConform,
R: Rng,
fn m_step(&mut self) -> ErStepC
[src]
Markov step
- use this to perform a markov step, e.g., to create a markov chain
- result
ErStepC
can be used to undo the step withself.undo_step(result)
fn undo_step(&mut self, step: ErStepC) -> ErStepC
[src]
Undo a markcov step
- adds removed edge, or removes added edge, or does nothing
- if it returns an Err value, you probably used the function wrong
Important:
Restored graph is the same as before the random step except the order of nodes in the adjacency list might be shuffled!
fn undo_step_quiet(&mut self, step: ErStepC)
[src]
Undo a markov step
- adds removed edge, or removes added edge, or does nothing
- if it returns an Err value, you probably used the function wrong
Important:
Restored graph is the same as before the random step except the order of nodes in the adjacency list might be shuffled!
fn m_steps(&mut self, count: usize) -> Vec<S>
[src]
fn undo_steps(&mut self, steps: Vec<S>) -> Vec<Res>
[src]
fn undo_steps_quiet(&mut self, steps: Vec<S>)
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErStepC
impl Send for ErStepC
impl Sync for ErStepC
impl Unpin for ErStepC
impl UnwindSafe for ErStepC
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,