Skip to main content

BlackBoxAutomaton

Trait BlackBoxAutomaton 

Source
pub trait BlackBoxAutomaton {
    type Output;

    // Required methods
    fn sigma(&self) -> usize;
    fn behavior<I>(&self, input: I) -> Self::Output
       where I: IntoIterator<Item = usize>;
}

Required Associated Types§

Required Methods§

Source

fn sigma(&self) -> usize

Source

fn behavior<I>(&self, input: I) -> Self::Output
where I: IntoIterator<Item = usize>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A> BlackBoxAutomaton for &A

Source§

type Output = <A as BlackBoxAutomaton>::Output

Source§

fn sigma(&self) -> usize

Source§

fn behavior<I>(&self, input: I) -> Self::Output
where I: IntoIterator<Item = usize>,

Implementors§