pub struct CardZoneTable { /* private fields */ }Implementations§
Source§impl CardZoneTable
impl CardZoneTable
Sourcepub fn put(
&mut self,
origin: Option<ZoneType>,
destination: Option<ZoneType>,
card: CardId,
)
pub fn put( &mut self, origin: Option<ZoneType>, destination: Option<ZoneType>, card: CardId, )
Java parity: special put that appends cards to an origin->destination bucket.
pub fn trigger_changes_zone_all( &self, trigger_handler: &mut TriggerHandler, game: &GameState, cause: Option<&SpellAbility>, )
pub fn filter_cards( &self, game: &GameState, origin: Option<&[ZoneType]>, destination: Option<&[ZoneType]>, valid: Option<&CompiledSelector>, source: CardId, source_controller: PlayerId, ) -> Vec<CardId>
pub fn all_cards(&self) -> Vec<CardId>
pub fn zone_changes(&self) -> Vec<ZoneChangeRecord>
pub fn add_token(&mut self, card: CardId, owner: PlayerId, first_time: bool)
pub fn last_state_battlefield(&self) -> &[CardId]
pub fn last_state_graveyard(&self) -> &[CardId]
Trait Implementations§
Source§impl Clone for CardZoneTable
impl Clone for CardZoneTable
Source§fn clone(&self) -> CardZoneTable
fn clone(&self) -> CardZoneTable
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 moreSource§impl Debug for CardZoneTable
impl Debug for CardZoneTable
Source§impl Default for CardZoneTable
impl Default for CardZoneTable
Source§fn default() -> CardZoneTable
fn default() -> CardZoneTable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CardZoneTable
impl<'de> Deserialize<'de> for CardZoneTable
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
Source§impl From<CardZoneTable> for AbilityValue
impl From<CardZoneTable> for AbilityValue
Source§fn from(value: CardZoneTable) -> Self
fn from(value: CardZoneTable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CardZoneTable
impl RefUnwindSafe for CardZoneTable
impl Send for CardZoneTable
impl Sync for CardZoneTable
impl Unpin for CardZoneTable
impl UnsafeUnpin for CardZoneTable
impl UnwindSafe for CardZoneTable
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.