WeaponCard

Enum WeaponCard 

Source
#[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

Source

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

Source§

fn clone(&self) -> WeaponCard

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WeaponCard

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<WeaponCard> for ActionCard

Source§

fn from(value: WeaponCard) -> ActionCard

Converts to this type from the input type.
Source§

impl From<WeaponCard> for Card

Source§

fn from(value: WeaponCard) -> Card

Converts to this type from the input type.
Source§

impl From<WeaponCard> for EquipmentCard

Source§

fn from(value: WeaponCard) -> EquipmentCard

Converts to this type from the input type.
Source§

impl Hash for WeaponCard

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for WeaponCard

Source§

fn eq(&self, other: &WeaponCard) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PlayingCard for WeaponCard

Source§

fn name(&self) -> &'static str

The display name of the card
Source§

fn shop_price(&self) -> Option<u16>

Returns the price for buying this card in Prince’s shop (in Lucky Coins) Read more
Source§

fn cost(&self) -> CardCost

How much it costs to play this card ingame
Source§

fn weapon(&self) -> Option<WeaponCard>

Attempts to parse self as a weapon card. Returns None if this card is of another type/subtype
Source§

fn equipment(&self) -> Option<EquipmentCard>

Attempts to parse self as an equipment card. Returns None if this card is of another type/subtype
Source§

fn event(&self) -> Option<EventCard>

Attempts to parse self as an event card. Returns None if this card is of another type/subtype
Source§

fn support(&self) -> Option<SupportCard>

Attempts to parse self as a support card. Returns None if this card is of another type/subtype
Source§

fn artifact(&self) -> Option<ArtifactCard>

Attempts to parse self as an artifact card. Returns None if this card is of another type/subtype
Source§

fn talent(&self) -> Option<TalentCard>

Attempts to parse self as a talent card. Returns None if this card is of another type/subtype
Source§

fn food(&self) -> Option<FoodCard>

Attempts to parse self as a food card. Returns None if this card is of another type/subtype
Source§

fn companion(&self) -> Option<CompanionCard>

Attempts to parse self as a companion card. Returns None if this card is of another type/subtype
Source§

fn item(&self) -> Option<ItemCard>

Attempts to parse self as an item card. Returns None if this card is of another type/subtype
Source§

fn location(&self) -> Option<LocationCard>

Attempts to parse self as a location card. Returns None if this card is of another type/subtype
Source§

fn resonance(&self) -> Option<ElementalResonanceCard>

Attempts to parse self as a resonance card. Returns None if this card is of another type/subtype
Source§

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/subtype
Source§

impl Copy for WeaponCard

Source§

impl Eq for WeaponCard

Source§

impl StructuralPartialEq for WeaponCard

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.