Skip to main content

ValidContext

Struct ValidContext 

Source
pub struct ValidContext<History: ActionHistory, State, Input, Filter: StateFilter<State, Input>> { /* private fields */ }

Implementations§

Source§

impl<History: ActionHistory, State, Input, Filter: StateFilter<State, Input>> ValidContext<History, State, Input, Filter>

Source

pub fn action<Action: ValidAction<State, Input, Filter = Filter> + ActionInfo<State, Filter::ValidOutput, History::History>>( self, action: Action, ) -> HistoricalContext<History, Action::Output>

Auto Trait Implementations§

§

impl<History, State, Input, Filter> Freeze for ValidContext<History, State, Input, Filter>
where History: Freeze, State: Freeze, <Filter as StateFilter<State, Input>>::ValidOutput: Freeze,

§

impl<History, State, Input, Filter> RefUnwindSafe for ValidContext<History, State, Input, Filter>
where History: RefUnwindSafe, State: RefUnwindSafe, <Filter as StateFilter<State, Input>>::ValidOutput: RefUnwindSafe, Input: RefUnwindSafe, Filter: RefUnwindSafe,

§

impl<History, State, Input, Filter> Send for ValidContext<History, State, Input, Filter>
where History: Send, State: Send, <Filter as StateFilter<State, Input>>::ValidOutput: Send, Input: Send, Filter: Send,

§

impl<History, State, Input, Filter> Sync for ValidContext<History, State, Input, Filter>
where History: Sync, State: Sync, <Filter as StateFilter<State, Input>>::ValidOutput: Sync, Input: Sync, Filter: Sync,

§

impl<History, State, Input, Filter> Unpin for ValidContext<History, State, Input, Filter>
where History: Unpin, State: Unpin, <Filter as StateFilter<State, Input>>::ValidOutput: Unpin, Input: Unpin, Filter: Unpin,

§

impl<History, State, Input, Filter> UnwindSafe for ValidContext<History, State, Input, Filter>
where History: UnwindSafe, State: UnwindSafe, <Filter as StateFilter<State, Input>>::ValidOutput: UnwindSafe, 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<State, T> Event<Priority<State>> for T
where T: Event<State>,

Source§

type Stackable = <T as Event<State>>::Stackable

Source§

impl<State, T> Event<PriorityMut<Priority<State>>> for T
where T: Event<State>,

Source§

type Stackable = <T as Event<State>>::Stackable

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.