pub enum ActionCard {
Equipment(EquipmentCard),
Support(SupportCard),
Event(EventCard),
}Variants§
Trait Implementations§
Source§impl Clone for ActionCard
impl Clone for ActionCard
Source§fn clone(&self) -> ActionCard
fn clone(&self) -> ActionCard
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 ActionCard
impl Debug for ActionCard
Source§impl From<ActionCard> for Card
impl From<ActionCard> for Card
Source§fn from(value: ActionCard) -> Card
fn from(value: ActionCard) -> Card
Converts to this type from the input type.
Source§impl From<ArtifactCard> for ActionCard
impl From<ArtifactCard> for ActionCard
Source§fn from(value: ArtifactCard) -> ActionCard
fn from(value: ArtifactCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<CompanionCard> for ActionCard
impl From<CompanionCard> for ActionCard
Source§fn from(value: CompanionCard) -> ActionCard
fn from(value: CompanionCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<ElementalResonanceCard> for ActionCard
impl From<ElementalResonanceCard> for ActionCard
Source§fn from(value: ElementalResonanceCard) -> ActionCard
fn from(value: ElementalResonanceCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<EquipmentCard> for ActionCard
impl From<EquipmentCard> for ActionCard
Source§fn from(value: EquipmentCard) -> ActionCard
fn from(value: EquipmentCard) -> ActionCard
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<FoodCard> for ActionCard
impl From<FoodCard> for ActionCard
Source§fn from(value: FoodCard) -> ActionCard
fn from(value: FoodCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<ItemCard> for ActionCard
impl From<ItemCard> for ActionCard
Source§fn from(value: ItemCard) -> ActionCard
fn from(value: ItemCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<LocationCard> for ActionCard
impl From<LocationCard> for ActionCard
Source§fn from(value: LocationCard) -> ActionCard
fn from(value: LocationCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<NormalEventCard> for ActionCard
impl From<NormalEventCard> for ActionCard
Source§fn from(value: NormalEventCard) -> ActionCard
fn from(value: NormalEventCard) -> ActionCard
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<TalentCard> for ActionCard
impl From<TalentCard> for ActionCard
Source§fn from(value: TalentCard) -> ActionCard
fn from(value: TalentCard) -> ActionCard
Converts to this type from the input type.
Source§impl From<WeaponCard> for ActionCard
impl From<WeaponCard> for ActionCard
Source§fn from(value: WeaponCard) -> ActionCard
fn from(value: WeaponCard) -> ActionCard
Converts to this type from the input type.
Source§impl Hash for ActionCard
impl Hash for ActionCard
Source§impl PartialEq for ActionCard
impl PartialEq for ActionCard
Source§impl PlayingCard for ActionCard
impl PlayingCard for ActionCard
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 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 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 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 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 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/subtypeimpl Copy for ActionCard
impl Eq for ActionCard
impl StructuralPartialEq for ActionCard
Auto Trait Implementations§
impl Freeze for ActionCard
impl RefUnwindSafe for ActionCard
impl Send for ActionCard
impl Sync for ActionCard
impl Unpin for ActionCard
impl UnwindSafe for ActionCard
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