pub enum CardFormat {
CommonCharity,
DuelLinks,
Edison,
Goat,
MasterDuel,
OCG,
OCGGoat,
SpeedDuel,
TCG,
}Variants§
Implementations§
Source§impl CardFormat
impl CardFormat
Sourcepub const fn is_common_charity(&self) -> bool
pub const fn is_common_charity(&self) -> bool
Returns true if the enum is CardFormat::CommonCharity otherwise false
Sourcepub const fn is_duel_links(&self) -> bool
pub const fn is_duel_links(&self) -> bool
Returns true if the enum is CardFormat::DuelLinks otherwise false
Sourcepub const fn is_edison(&self) -> bool
pub const fn is_edison(&self) -> bool
Returns true if the enum is CardFormat::Edison otherwise false
Sourcepub const fn is_goat(&self) -> bool
pub const fn is_goat(&self) -> bool
Returns true if the enum is CardFormat::Goat otherwise false
Sourcepub const fn is_master_duel(&self) -> bool
pub const fn is_master_duel(&self) -> bool
Returns true if the enum is CardFormat::MasterDuel otherwise false
Sourcepub const fn is_ocg_goat(&self) -> bool
pub const fn is_ocg_goat(&self) -> bool
Returns true if the enum is CardFormat::OCGGoat otherwise false
Sourcepub const fn is_speed_duel(&self) -> bool
pub const fn is_speed_duel(&self) -> bool
Returns true if the enum is CardFormat::SpeedDuel otherwise false
Trait Implementations§
Source§impl Clone for CardFormat
impl Clone for CardFormat
Source§fn clone(&self) -> CardFormat
fn clone(&self) -> CardFormat
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 CardFormat
impl Debug for CardFormat
Source§impl<'de> Deserialize<'de> for CardFormat
impl<'de> Deserialize<'de> for CardFormat
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 CardFormat
impl Display for CardFormat
Source§impl<'_derivative_strum> From<&'_derivative_strum CardFormat> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CardFormat> for &'static str
Source§fn from(x: &'_derivative_strum CardFormat) -> &'static str
fn from(x: &'_derivative_strum CardFormat) -> &'static str
Converts to this type from the input type.
Source§impl From<CardFormat> for &'static str
impl From<CardFormat> for &'static str
Source§fn from(x: CardFormat) -> &'static str
fn from(x: CardFormat) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for CardFormat
impl FromStr for CardFormat
Source§impl IntoEnumIterator for CardFormat
impl IntoEnumIterator for CardFormat
Source§impl Serialize for CardFormat
impl Serialize for CardFormat
Source§impl TryFrom<&str> for CardFormat
impl TryFrom<&str> for CardFormat
Source§impl VariantArray for CardFormat
impl VariantArray for CardFormat
impl Copy for CardFormat
Auto Trait Implementations§
impl Freeze for CardFormat
impl RefUnwindSafe for CardFormat
impl Send for CardFormat
impl Sync for CardFormat
impl Unpin for CardFormat
impl UnsafeUnpin for CardFormat
impl UnwindSafe for CardFormat
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