[][src]Enum screeps::constants::ExitDirection

#[repr(u8)]pub enum ExitDirection {
    Top,
    Right,
    Bottom,
    Left,
}

Type used for when the game returns a direction to an exit.

Restricted more than Direction in that it can't be diagonal. Used as the result of Room::find_exit_to.

Can be converted to both find::Exit for immediate use of Room::find and Direction.

Variants

Top
Right
Bottom
Left

Trait Implementations

impl Clone for ExitDirection[src]

impl Copy for ExitDirection[src]

impl Debug for ExitDirection[src]

impl<'de> Deserialize<'de> for ExitDirection[src]

impl Eq for ExitDirection[src]

impl From<ExitDirection> for Exit[src]

impl From<ExitDirection> for Direction[src]

impl FromPrimitive for ExitDirection[src]

impl Hash for ExitDirection[src]

impl PartialEq<ExitDirection> for ExitDirection[src]

impl Serialize for ExitDirection[src]

impl StructuralEq for ExitDirection[src]

impl StructuralPartialEq for ExitDirection[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T, U> IntoExpectedType<U> for T where
    U: FromExpectedType<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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, 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.