StepSelf

Trait StepSelf 

Source
pub trait StepSelf {
    type Output;

    // Required method
    fn step(&mut self) -> Self::Output;
}
Expand description

StepSelf is a trait establishing a common interface for entities that may be progressed, producing some Output as a result. The trait is typically used to define generators for indices within the hypergraph.

Required Associated Types§

Source

type Output

the expected output type of the step function

Required Methods§

Source

fn step(&mut self) -> Self::Output

progress the current state by a single step, producing some output

Implementations on Foreign Types§

Source§

impl StepSelf for f32

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = f32

Source§

impl StepSelf for f64

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = f64

Source§

impl StepSelf for i8

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = i8

Source§

impl StepSelf for i16

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = i16

Source§

impl StepSelf for i32

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = i32

Source§

impl StepSelf for i64

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = i64

Source§

impl StepSelf for i128

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = i128

Source§

impl StepSelf for isize

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = isize

Source§

impl StepSelf for u8

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = u8

Source§

impl StepSelf for u16

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = u16

Source§

impl StepSelf for u32

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = u32

Source§

impl StepSelf for u64

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = u64

Source§

impl StepSelf for u128

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = u128

Source§

impl StepSelf for usize

Source§

fn step(&mut self) -> Self::Output

Creates the next value by incrementing the current one.

Source§

type Output = usize

Implementors§