pub enum CardAttribute {
Dark,
Divine,
Earth,
Fire,
Light,
Water,
Wind,
}Variants§
Implementations§
Source§impl CardAttribute
impl CardAttribute
Sourcepub const fn is_dark(&self) -> bool
pub const fn is_dark(&self) -> bool
Returns true if the enum is CardAttribute::Dark otherwise false
Sourcepub const fn is_divine(&self) -> bool
pub const fn is_divine(&self) -> bool
Returns true if the enum is CardAttribute::Divine otherwise false
Sourcepub const fn is_earth(&self) -> bool
pub const fn is_earth(&self) -> bool
Returns true if the enum is CardAttribute::Earth otherwise false
Sourcepub const fn is_fire(&self) -> bool
pub const fn is_fire(&self) -> bool
Returns true if the enum is CardAttribute::Fire otherwise false
Sourcepub const fn is_light(&self) -> bool
pub const fn is_light(&self) -> bool
Returns true if the enum is CardAttribute::Light otherwise false
Trait Implementations§
Source§impl Clone for CardAttribute
impl Clone for CardAttribute
Source§fn clone(&self) -> CardAttribute
fn clone(&self) -> CardAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CardAttribute
impl Debug for CardAttribute
Source§impl<'de> Deserialize<'de> for CardAttribute
impl<'de> Deserialize<'de> for CardAttribute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CardAttribute
impl Display for CardAttribute
Source§impl<'_derivative_strum> From<&'_derivative_strum CardAttribute> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CardAttribute> for &'static str
Source§fn from(x: &'_derivative_strum CardAttribute) -> &'static str
fn from(x: &'_derivative_strum CardAttribute) -> &'static str
Converts to this type from the input type.
Source§impl From<CardAttribute> for &'static str
impl From<CardAttribute> for &'static str
Source§fn from(x: CardAttribute) -> &'static str
fn from(x: CardAttribute) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for CardAttribute
impl FromStr for CardAttribute
Source§impl IntoEnumIterator for CardAttribute
impl IntoEnumIterator for CardAttribute
Source§impl Serialize for CardAttribute
impl Serialize for CardAttribute
Source§impl TryFrom<&str> for CardAttribute
impl TryFrom<&str> for CardAttribute
Source§impl VariantArray for CardAttribute
impl VariantArray for CardAttribute
impl Copy for CardAttribute
Auto Trait Implementations§
impl Freeze for CardAttribute
impl RefUnwindSafe for CardAttribute
impl Send for CardAttribute
impl Sync for CardAttribute
impl Unpin for CardAttribute
impl UnsafeUnpin for CardAttribute
impl UnwindSafe for CardAttribute
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