[][src]Enum minutiae::action::SelfAction

pub enum SelfAction<C: CellState, E: EntityState<C>, EA: EntityAction<C, E>> {
    Translate(isizeisize),
    Suicide,
    Custom(EA),
    __phantom_c(PhantomData<C>),
    __phantom_e(PhantomData<E>),
}

An attempt of an entity to mutate itself.

Variants

Translate(isizeisize)SuicideCustom(EA)__phantom_c(PhantomData<C>)__phantom_e(PhantomData<E>)

Methods

impl<C: CellState, E: EntityState<C>, EA: EntityAction<C, E>> SelfAction<C, E, EA>[src]

pub fn translate(x: isize, y: isize) -> SelfAction<C, E, EA>[src]

Trait Implementations

impl<C: CellState, E: EntityState<C>, EA: EntityAction<C, E>> Clone for SelfAction<C, E, EA> where
    EA: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<C: Debug + CellState, E: Debug + EntityState<C>, EA: Debug + EntityAction<C, E>> Debug for SelfAction<C, E, EA>[src]

Auto Trait Implementations

impl<C, E, EA> Send for SelfAction<C, E, EA> where
    C: Send,
    E: Send,
    EA: Send

impl<C, E, EA> Unpin for SelfAction<C, E, EA> where
    C: Unpin,
    E: Unpin,
    EA: Unpin

impl<C, E, EA> Sync for SelfAction<C, E, EA> where
    C: Sync,
    E: Sync,
    EA: Sync

impl<C, E, EA> UnwindSafe for SelfAction<C, E, EA> where
    C: UnwindSafe,
    E: UnwindSafe,
    EA: UnwindSafe

impl<C, E, EA> RefUnwindSafe for SelfAction<C, E, EA> where
    C: RefUnwindSafe,
    E: RefUnwindSafe,
    EA: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.