pub enum GameItemEventError {
InvalidItemType {
type_id: i32,
},
NotARod {
type_id: i32,
},
}Variants§
Implementations§
Source§impl GameItemEventError
impl GameItemEventError
pub fn invalid_item_type(type_id: i32) -> Self
pub fn not_a_rod(type_id: i32) -> Self
pub fn is_invalid_item_type(&self) -> bool
pub fn is_not_a_rod(&self) -> bool
pub fn get_type_id(&self) -> Option<i32>
Trait Implementations§
Source§impl Debug for GameItemEventError
impl Debug for GameItemEventError
Source§impl Display for GameItemEventError
impl Display for GameItemEventError
Source§impl Error for GameItemEventError
impl Error for GameItemEventError
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<GameItemEventError> for GameError
impl From<GameItemEventError> for GameError
Source§fn from(source: GameItemEventError) -> Self
fn from(source: GameItemEventError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GameItemEventError
impl RefUnwindSafe for GameItemEventError
impl Send for GameItemEventError
impl Sync for GameItemEventError
impl Unpin for GameItemEventError
impl UnwindSafe for GameItemEventError
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more