Trait StatesSlice

Source
pub trait StatesSlice<S> {
    // Required method
    fn states_slice<'a>(
        &'a self,
        state_indices: impl IntoIterator<Item = StateIndex> + 'a,
    ) -> Box<dyn Iterator<Item = &S> + 'a>;
}

Required Methods§

Source

fn states_slice<'a>( &'a self, state_indices: impl IntoIterator<Item = StateIndex> + 'a, ) -> Box<dyn Iterator<Item = &S> + 'a>

Convert the state indices to states.

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§

Source§

impl<S: Ord, T: Ord> StatesSlice<S> for Dfa<S, T>

Source§

impl<S: Ord, T: Ord> StatesSlice<S> for Enfa<S, T>

Source§

impl<S: Ord, T: Ord> StatesSlice<S> for Nfa<S, T>