pub enum EventCard {
Normal(NormalEventCard),
Resonance(ElementalResonanceCard),
Food(FoodCard),
}Variants§
Normal(NormalEventCard)
Normal types of event cards, with no subtypes, might rename this variant and subtype later
Resonance(ElementalResonanceCard)
Elemental Resonance cards
Food(FoodCard)
Food buff cards
Trait Implementations§
Source§impl From<ElementalResonanceCard> for EventCard
impl From<ElementalResonanceCard> for EventCard
Source§fn from(value: ElementalResonanceCard) -> EventCard
fn from(value: ElementalResonanceCard) -> EventCard
Converts to this type from the input type.
Source§impl From<EventCard> for ActionCard
impl From<EventCard> for ActionCard
Source§fn from(value: EventCard) -> ActionCard
fn from(value: EventCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<NormalEventCard> for EventCard
impl From<NormalEventCard> for EventCard
Source§fn from(value: NormalEventCard) -> EventCard
fn from(value: NormalEventCard) -> EventCard
Converts to this type from the input type.
Source§impl PlayingCard for EventCard
impl PlayingCard for EventCard
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 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 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/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 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 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 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 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 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 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 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/subtypeimpl Copy for EventCard
impl Eq for EventCard
impl StructuralPartialEq for EventCard
Auto Trait Implementations§
impl Freeze for EventCard
impl RefUnwindSafe for EventCard
impl Send for EventCard
impl Sync for EventCard
impl Unpin for EventCard
impl UnwindSafe for EventCard
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