#[non_exhaustive]pub enum WeaponCard {
Show 15 variants
MagicGuide,
SacrificialFragments,
SkywardAtlas,
RavenBow,
SacrificialBow,
SkywardHarp,
WhiteIronGreatsword,
SacrificialGreatsword,
WolfsGravestone,
WhiteTassel,
LithicSpear,
SkywardSpine,
TravelersHandySword,
SacrificialSword,
AquilaFavonia,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MagicGuide
SacrificialFragments
SkywardAtlas
RavenBow
SacrificialBow
SkywardHarp
WhiteIronGreatsword
SacrificialGreatsword
WolfsGravestone
WhiteTassel
LithicSpear
SkywardSpine
TravelersHandySword
SacrificialSword
AquilaFavonia
Implementations§
Source§impl WeaponCard
impl WeaponCard
Sourcepub fn subtype(&self) -> Option<WeaponType>
pub fn subtype(&self) -> Option<WeaponType>
Retrieves the weapon type for this card
Currently, this method never returns None, but since some character cards have the
“Other Weapons” subtype, this could potentially mean there will be cards in the future
that don’t fit into any of the weapon types, which would return None for this method
Trait Implementations§
Source§impl Clone for WeaponCard
impl Clone for WeaponCard
Source§fn clone(&self) -> WeaponCard
fn clone(&self) -> WeaponCard
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 WeaponCard
impl Debug for WeaponCard
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 From<WeaponCard> for Card
impl From<WeaponCard> for Card
Source§fn from(value: WeaponCard) -> Card
fn from(value: WeaponCard) -> Card
Converts to this type from the input type.
Source§impl From<WeaponCard> for EquipmentCard
impl From<WeaponCard> for EquipmentCard
Source§fn from(value: WeaponCard) -> EquipmentCard
fn from(value: WeaponCard) -> EquipmentCard
Converts to this type from the input type.
Source§impl Hash for WeaponCard
impl Hash for WeaponCard
Source§impl PartialEq for WeaponCard
impl PartialEq for WeaponCard
Source§impl PlayingCard for WeaponCard
impl PlayingCard for WeaponCard
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 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 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 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 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 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/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 WeaponCard
impl Eq for WeaponCard
impl StructuralPartialEq for WeaponCard
Auto Trait Implementations§
impl Freeze for WeaponCard
impl RefUnwindSafe for WeaponCard
impl Send for WeaponCard
impl Sync for WeaponCard
impl Unpin for WeaponCard
impl UnwindSafe for WeaponCard
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