pub enum ZoneType {
Show 19 variants
Hand,
Library,
Graveyard,
Battlefield,
Exile,
Flashback,
Command,
Stack,
Sideboard,
Ante,
Merged,
SchemeDeck,
PlanarDeck,
AttractionDeck,
Junkyard,
ContraptionDeck,
Subgame,
ExtraHand,
None,
}Expand description
Game zones. Mirrors Java ZoneType.
Variants§
Hand
Library
Graveyard
Battlefield
Exile
Flashback
Command
Stack
Sideboard
Ante
Merged
SchemeDeck
PlanarDeck
AttractionDeck
Junkyard
ContraptionDeck
Subgame
ExtraHand
None
Implementations§
Source§impl ZoneType
impl ZoneType
pub const ALL: [ZoneType; 19]
Whether this zone holds hidden information (cards not visible to opponents).
pub fn is_known(self) -> bool
pub fn is_deck(self) -> bool
pub fn is_part_of_command_zone(self) -> bool
Sourcepub fn is_static_ability_source(self) -> bool
pub fn is_static_ability_source(self) -> bool
Zones that can host static abilities in Forge runtime checks.
Mirrors Java’s ZoneType.STATIC_ABILITIES_SOURCE_ZONES usage.
pub fn from_str_compat(s: &str) -> Option<Self>
Trait Implementations§
impl Copy for ZoneType
Source§impl<'de> Deserialize<'de> for ZoneType
impl<'de> Deserialize<'de> for ZoneType
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 ZoneType
impl StructuralPartialEq for ZoneType
Auto Trait Implementations§
impl Freeze for ZoneType
impl RefUnwindSafe for ZoneType
impl Send for ZoneType
impl Sync for ZoneType
impl Unpin for ZoneType
impl UnsafeUnpin for ZoneType
impl UnwindSafe for ZoneType
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