pub enum MainPhaseAction {
Pass,
Play(PlayOption),
ActivateMana(CardId, Option<usize>, Option<u16>),
UntapMana(CardId),
ActivateAbility(CardId, usize),
}Expand description
The action a player takes during a main phase.
Variants§
Pass
Pass priority / end main phase.
Play(PlayOption)
Play a card from hand / graveyard / exile / command with a specific cast mode.
ActivateMana(CardId, Option<usize>, Option<u16>)
Tap an untapped land on the battlefield to add its mana to the pool. Optional ability index selects a specific mana ability (dual lands).
UntapMana(CardId)
Untap a tapped land and remove its mana from the pool (undo tap).
ActivateAbility(CardId, usize)
Activate an ability on a permanent. (source card, ability index)
Trait Implementations§
Source§impl Clone for MainPhaseAction
impl Clone for MainPhaseAction
Source§fn clone(&self) -> MainPhaseAction
fn clone(&self) -> MainPhaseAction
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 MainPhaseAction
Source§impl Debug for MainPhaseAction
impl Debug for MainPhaseAction
impl Eq for MainPhaseAction
Source§impl PartialEq for MainPhaseAction
impl PartialEq for MainPhaseAction
impl StructuralPartialEq for MainPhaseAction
Auto Trait Implementations§
impl Freeze for MainPhaseAction
impl RefUnwindSafe for MainPhaseAction
impl Send for MainPhaseAction
impl Sync for MainPhaseAction
impl Unpin for MainPhaseAction
impl UnsafeUnpin for MainPhaseAction
impl UnwindSafe for MainPhaseAction
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> 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
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.