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<ZoneType>
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<ZoneType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZoneType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ZoneType
Source§impl From<ZoneType> for AbilityValue
impl From<ZoneType> for AbilityValue
Source§impl Serialize for ZoneType
impl Serialize for ZoneType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> 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.