Condition

Struct Condition 

Source
pub struct Condition<Input, Filter>(/* private fields */);

Trait Implementations§

Source§

impl<State, InitialInput, Input, F: StateFilter<State, Input>> StateFilter<State, InitialInput> for Condition<Input, F>

Source§

type ValidOutput = <<InitialInput as StateFilterInputConversion<Input>>::Remainder as StateFilterInputCombination<<F as StateFilter<State, Input>>::ValidOutput>>::Combined

Source§

type Error = <F as StateFilter<State, Input>>::Error

Source§

fn filter( state: &State, value: InitialInput, ) -> Result<Self::ValidOutput, Self::Error>

Auto Trait Implementations§

§

impl<Input, Filter> Freeze for Condition<Input, Filter>

§

impl<Input, Filter> RefUnwindSafe for Condition<Input, Filter>
where Input: RefUnwindSafe, Filter: RefUnwindSafe,

§

impl<Input, Filter> Send for Condition<Input, Filter>
where Input: Send, Filter: Send,

§

impl<Input, Filter> Sync for Condition<Input, Filter>
where Input: Sync, Filter: Sync,

§

impl<Input, Filter> Unpin for Condition<Input, Filter>
where Input: Unpin, Filter: Unpin,

§

impl<Input, Filter> UnwindSafe for Condition<Input, Filter>
where Input: UnwindSafe, Filter: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StateFilterInputConversion<T> for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.