pub enum SupportCard {
Companion(CompanionCard),
Location(LocationCard),
Item(ItemCard),
}Variants§
Trait Implementations§
Source§impl Clone for SupportCard
impl Clone for SupportCard
Source§fn clone(&self) -> SupportCard
fn clone(&self) -> SupportCard
Returns a duplicate 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 Debug for SupportCard
impl Debug for SupportCard
Source§impl From<CompanionCard> for SupportCard
impl From<CompanionCard> for SupportCard
Source§fn from(value: CompanionCard) -> SupportCard
fn from(value: CompanionCard) -> SupportCard
Converts to this type from the input type.
Source§impl From<ItemCard> for SupportCard
impl From<ItemCard> for SupportCard
Source§fn from(value: ItemCard) -> SupportCard
fn from(value: ItemCard) -> SupportCard
Converts to this type from the input type.
Source§impl From<LocationCard> for SupportCard
impl From<LocationCard> for SupportCard
Source§fn from(value: LocationCard) -> SupportCard
fn from(value: LocationCard) -> SupportCard
Converts to this type from the input type.
Source§impl From<SupportCard> for ActionCard
impl From<SupportCard> for ActionCard
Source§fn from(value: SupportCard) -> ActionCard
fn from(value: SupportCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<SupportCard> for Card
impl From<SupportCard> for Card
Source§fn from(value: SupportCard) -> Card
fn from(value: SupportCard) -> Card
Converts to this type from the input type.
Source§impl Hash for SupportCard
impl Hash for SupportCard
Source§impl PartialEq for SupportCard
impl PartialEq for SupportCard
Source§impl PlayingCard for SupportCard
impl PlayingCard for SupportCard
Source§fn shop_price(&self) -> Option<u16>
fn shop_price(&self) -> Option<u16>
Returns the price for buying this card in Prince’s shop (in Lucky Coins) Read more
Source§fn support(&self) -> Option<SupportCard>
fn support(&self) -> Option<SupportCard>
Attempts to parse
self as
a
support
card. Returns None if this card is of another type/subtypeSource§fn companion(&self) -> Option<CompanionCard>
fn companion(&self) -> Option<CompanionCard>
Attempts to parse
self as
a
companion
card. Returns None if this card is of another type/subtypeSource§fn location(&self) -> Option<LocationCard>
fn location(&self) -> Option<LocationCard>
Attempts to parse
self as
a
location
card. Returns None if this card is of another type/subtypeSource§fn item(&self) -> Option<ItemCard>
fn item(&self) -> Option<ItemCard>
Attempts to parse
self as
an
item
card. Returns None if this card is of another type/subtypeSource§fn equipment(&self) -> Option<EquipmentCard>
fn equipment(&self) -> Option<EquipmentCard>
Attempts to parse
self as
an
equipment
card. Returns None if this card is of another type/subtypeSource§fn event(&self) -> Option<EventCard>
fn event(&self) -> Option<EventCard>
Attempts to parse
self as
an
event
card. Returns None if this card is of another type/subtypeSource§fn artifact(&self) -> Option<ArtifactCard>
fn artifact(&self) -> Option<ArtifactCard>
Attempts to parse
self as
an
artifact
card. Returns None if this card is of another type/subtypeSource§fn talent(&self) -> Option<TalentCard>
fn talent(&self) -> Option<TalentCard>
Attempts to parse
self as
a
talent
card. Returns None if this card is of another type/subtypeSource§fn weapon(&self) -> Option<WeaponCard>
fn weapon(&self) -> Option<WeaponCard>
Attempts to parse
self as
a
weapon
card. Returns None if this card is of another type/subtypeSource§fn food(&self) -> Option<FoodCard>
fn food(&self) -> Option<FoodCard>
Attempts to parse
self as
a
food
card. Returns None if this card is of another type/subtypeSource§fn resonance(&self) -> Option<ElementalResonanceCard>
fn resonance(&self) -> Option<ElementalResonanceCard>
Attempts to parse
self as
a
resonance
card. Returns None if this card is of another type/subtypeSource§fn normal_event(&self) -> Option<NormalEventCard>
fn normal_event(&self) -> Option<NormalEventCard>
Attempts to parse
self as a normal event card (non-food and non-resonance).
Returns None if this card is of another type/subtypeimpl Copy for SupportCard
impl Eq for SupportCard
impl StructuralPartialEq for SupportCard
Auto Trait Implementations§
impl Freeze for SupportCard
impl RefUnwindSafe for SupportCard
impl Send for SupportCard
impl Sync for SupportCard
impl Unpin for SupportCard
impl UnwindSafe for SupportCard
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