pub struct BadGamemode(pub String);Expand description
Returned from Gamemode::from_str() and contains the original
string that the enum cannot represent.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for BadGamemode
impl Debug for BadGamemode
Source§impl Display for BadGamemode
impl Display for BadGamemode
Source§impl Error for BadGamemode
impl Error for BadGamemode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BadGamemode> for InvalidProperties
impl From<BadGamemode> for InvalidProperties
Source§fn from(b: BadGamemode) -> Self
fn from(b: BadGamemode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BadGamemode
impl RefUnwindSafe for BadGamemode
impl Send for BadGamemode
impl Sync for BadGamemode
impl Unpin for BadGamemode
impl UnwindSafe for BadGamemode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more