Struct tf2_enum::TryFromPrimitiveError
source · pub struct TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,{
pub number: <Enum as TryFromPrimitive>::Primitive,
}
Fields§
§number: <Enum as TryFromPrimitive>::Primitive
Trait Implementations§
source§impl<Enum> Clone for TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,
impl<Enum> Clone for TryFromPrimitiveError<Enum>where Enum: TryFromPrimitive,
source§fn clone(&self) -> TryFromPrimitiveError<Enum>
fn clone(&self) -> TryFromPrimitiveError<Enum>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Enum> Debug for TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,
impl<Enum> Debug for TryFromPrimitiveError<Enum>where Enum: TryFromPrimitive,
source§impl<Enum> Display for TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,
impl<Enum> Display for TryFromPrimitiveError<Enum>where Enum: TryFromPrimitive,
source§impl<Enum> Error for TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,
impl<Enum> Error for TryFromPrimitiveError<Enum>where Enum: TryFromPrimitive,
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<Enum> PartialEq<TryFromPrimitiveError<Enum>> for TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,
impl<Enum> PartialEq<TryFromPrimitiveError<Enum>> for TryFromPrimitiveError<Enum>where Enum: TryFromPrimitive,
source§fn eq(&self, other: &TryFromPrimitiveError<Enum>) -> bool
fn eq(&self, other: &TryFromPrimitiveError<Enum>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.