Enum screeps::RoomNameParseError
source · [−]pub enum RoomNameParseError {
TooLarge {
length: usize,
},
InvalidString {
string: ArrayString<[u8; 8]>,
},
PositionOutOfBounds {
x_coord: i32,
y_coord: i32,
},
}
Expand description
An error representing when a string can’t be parsed into a
RoomName
.
Variants
TooLarge
Fields
length: usize
InvalidString
Fields
string: ArrayString<[u8; 8]>
PositionOutOfBounds
Trait Implementations
sourceimpl Clone for RoomNameParseError
impl Clone for RoomNameParseError
sourcefn clone(&self) -> RoomNameParseError
fn clone(&self) -> RoomNameParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RoomNameParseError
impl Debug for RoomNameParseError
sourceimpl Display for RoomNameParseError
impl Display for RoomNameParseError
sourceimpl Error for RoomNameParseError
impl Error for RoomNameParseError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for RoomNameParseError
impl Send for RoomNameParseError
impl Sync for RoomNameParseError
impl Unpin for RoomNameParseError
impl UnwindSafe for RoomNameParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more