pub struct CardOtherPart {Show 14 fields
pub name: String,
pub oracle_text: String,
pub is_modal: bool,
pub type_line: CardTypeLine,
pub mana_cost: ManaCost,
pub color: ColorSet,
pub base_power: Option<i32>,
pub base_toughness: Option<i32>,
pub keywords: KeywordCollection,
pub abilities: Vec<String>,
pub triggers: Vec<Trigger>,
pub static_abilities: Vec<StaticAbility>,
pub replacement_effects: Vec<ReplacementEffect>,
pub svars: BTreeMap<String, String>,
}Expand description
Stores alternate-face characteristics for double-faced cards (DFCs).
The transform() method swaps Card fields with these values.
Mirrors Java’s CardState stored as the “backside” state.
Fields§
§name: String§oracle_text: String§is_modal: boolTrue when the card’s split type is Modal (MDFC). Only a modal back face
may be played from hand; transform/meld backs may not. Mirrors
Card.isModal() (getRules().getSplitType() == CardSplitType.Modal).
Invariant across transform(), so it is not swapped there.
type_line: CardTypeLine§mana_cost: ManaCost§color: ColorSet§base_power: Option<i32>§base_toughness: Option<i32>§keywords: KeywordCollection§abilities: Vec<String>§triggers: Vec<Trigger>§static_abilities: Vec<StaticAbility>§replacement_effects: Vec<ReplacementEffect>§svars: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for CardOtherPart
impl Clone for CardOtherPart
Source§fn clone(&self) -> CardOtherPart
fn clone(&self) -> CardOtherPart
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 CardOtherPart
impl Debug for CardOtherPart
Source§impl<'de> Deserialize<'de> for CardOtherPart
impl<'de> Deserialize<'de> for CardOtherPart
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
Auto Trait Implementations§
impl !RefUnwindSafe for CardOtherPart
impl !UnwindSafe for CardOtherPart
impl Freeze for CardOtherPart
impl Send for CardOtherPart
impl Sync for CardOtherPart
impl Unpin for CardOtherPart
impl UnsafeUnpin for CardOtherPart
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.