pub enum OptionalCost {
Show 17 variants
Kicker1,
Kicker2,
Buyback,
Entwine,
Bargain,
PromiseGift,
Retrace,
Jumpstart,
Offering,
ReduceW,
ReduceU,
ReduceB,
ReduceR,
ReduceG,
AltCost,
Flash,
Generic,
}Expand description
Optional additional costs for spells.
Mirrors Java’s OptionalCost.java enum.
Variants§
Kicker1
First kicker cost was paid.
Kicker2
Second kicker cost was paid (for cards with two kicker costs).
Buyback
Buyback cost was paid (return spell to hand on resolution).
Entwine
Entwine cost was paid (choose all modes).
Bargain
Bargain — sacrifice an artifact, enchantment, or token.
PromiseGift
Promise of a gift — offer a card to an opponent.
Retrace
Retrace — cast from graveyard by discarding a land.
Jumpstart
Jumpstart — cast from graveyard by discarding a card.
Offering
Offering — sacrifice a creature of the specified type.
ReduceW
Reduce white mana in cost.
ReduceU
Reduce blue mana in cost.
ReduceB
Reduce black mana in cost.
ReduceR
Reduce red mana in cost.
ReduceG
Reduce green mana in cost.
AltCost
Generic alternative cost.
Flash
Flash — cast at instant speed.
Generic
Generic optional cost.
Implementations§
Trait Implementations§
Source§impl Clone for OptionalCost
impl Clone for OptionalCost
Source§fn clone(&self) -> OptionalCost
fn clone(&self) -> OptionalCost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionalCost
Source§impl Debug for OptionalCost
impl Debug for OptionalCost
Source§impl<'de> Deserialize<'de> for OptionalCost
impl<'de> Deserialize<'de> for OptionalCost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OptionalCost
Source§impl Hash for OptionalCost
impl Hash for OptionalCost
Source§impl PartialEq for OptionalCost
impl PartialEq for OptionalCost
Source§impl Serialize for OptionalCost
impl Serialize for OptionalCost
impl StructuralPartialEq for OptionalCost
Auto Trait Implementations§
impl Freeze for OptionalCost
impl RefUnwindSafe for OptionalCost
impl Send for OptionalCost
impl Sync for OptionalCost
impl Unpin for OptionalCost
impl UnsafeUnpin for OptionalCost
impl UnwindSafe for OptionalCost
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.