Enum screeps::RoomNameParseError[][src]

pub enum RoomNameParseError {
    TooLarge {
        length: usize,
    },
    InvalidString {
        string: ArrayString<[u8; 8]>,
    },
    PositionOutOfBounds {
        x_coord: i32,
        y_coord: i32,
    },
}

An error representing when a string can't be parsed into a RoomName.

Variants

TooLarge

Fields of TooLarge

length: usize
InvalidString

Fields of InvalidString

string: ArrayString<[u8; 8]>
PositionOutOfBounds

Fields of PositionOutOfBounds

x_coord: i32y_coord: i32

Trait Implementations

impl Clone for RoomNameParseError[src]

impl Debug for RoomNameParseError[src]

impl Display for RoomNameParseError[src]

impl Error for RoomNameParseError[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> 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> ToString for T where
    T: Display + ?Sized
[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, 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.