Skip to main content

PriorityMut

Struct PriorityMut 

Source
pub struct PriorityMut<Priority> { /* private fields */ }

Implementations§

Source§

impl<Priority> PriorityMut<Priority>

Source

pub fn priority(&self) -> &Priority

Source

pub fn priority_mut(&mut self) -> &mut Priority

Source

pub fn take_priority(self) -> Priority

Source§

impl<State> PriorityMut<Priority<State>>

Source

pub fn take_state(self) -> State

Source

pub fn state(&self) -> &State

Source

pub fn state_mut(&mut self) -> &mut State

Source

pub fn stack<IncitingAction: IncitingActionInfo<State>>( self, inciting_action: IncitingAction, ) -> PriorityMut<PriorityStack<State, IncitingAction>>

Source

pub fn into_state<NewState>(self) -> PriorityMut<Priority<NewState>>
where State: Into<NewState>,

Source§

impl<State, IncitingAction: IncitingActionInfo<State>> PriorityMut<PriorityStack<State, IncitingAction>>

Source

pub fn state_mut(&mut self) -> &mut State

Source

pub fn stack(self, stack_action: impl Into<IncitingAction::Stackable>) -> Self

Source

pub fn into_state<NewState, NewIncitingAction: IncitingActionInfo<NewState>>( self, ) -> PriorityMut<PriorityStack<NewState, NewIncitingAction>>
where State: Into<NewState>, IncitingAction: Into<NewIncitingAction>, <IncitingAction as IncitingActionInfo<State>>::Stackable: Into<<NewIncitingAction as IncitingActionInfo<NewState>>::Stackable>,

Trait Implementations§

Source§

impl<Priority: Debug> Debug for PriorityMut<Priority>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<State: GetState<InnerState>, InnerState> GetState<InnerState> for PriorityMut<State>

Auto Trait Implementations§

§

impl<Priority> Freeze for PriorityMut<Priority>
where Priority: Freeze,

§

impl<Priority> RefUnwindSafe for PriorityMut<Priority>
where Priority: RefUnwindSafe,

§

impl<Priority> Send for PriorityMut<Priority>
where Priority: Send,

§

impl<Priority> Sync for PriorityMut<Priority>
where Priority: Sync,

§

impl<Priority> Unpin for PriorityMut<Priority>
where Priority: Unpin,

§

impl<Priority> UnwindSafe for PriorityMut<Priority>
where Priority: 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.