pub enum ReplacementLayer {
CantHappen = 0,
Control = 1,
Copy = 2,
Transform = 3,
Other = 4,
}Expand description
CR 614 / CR 616 layer ordering for replacement effects.
Multiple replacement effects that apply to the same event are applied in the order below. Within the same layer the affected player chooses the order.
Reference: CR 616.1, Java ReplacementLayer.java.
Variants§
CantHappen = 0
CR 614.17 — effects that say an event “can’t happen” (highest priority).
Control = 1
CR 616.1b — control-changing replacement effects.
Copy = 2
CR 616.1c — copy replacement effects.
Transform = 3
CR 616.1d — transform replacement effects.
Other = 4
All other replacement effects (damage prevention, zone rerouting, etc.).
Implementations§
Source§impl ReplacementLayer
impl ReplacementLayer
Sourcepub fn smart_value_of(value: &str) -> Option<Self>
pub fn smart_value_of(value: &str) -> Option<Self>
Case-insensitive Layer$ value parser. Mirrors Java
ReplacementLayer.smartValueOf(). Returns None if unrecognised.
Trait Implementations§
Source§impl Clone for ReplacementLayer
impl Clone for ReplacementLayer
Source§fn clone(&self) -> ReplacementLayer
fn clone(&self) -> ReplacementLayer
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 ReplacementLayer
Source§impl Debug for ReplacementLayer
impl Debug for ReplacementLayer
Source§impl<'de> Deserialize<'de> for ReplacementLayer
impl<'de> Deserialize<'de> for ReplacementLayer
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 ReplacementLayer
Source§impl Hash for ReplacementLayer
impl Hash for ReplacementLayer
Source§impl Ord for ReplacementLayer
impl Ord for ReplacementLayer
Source§fn cmp(&self, other: &ReplacementLayer) -> Ordering
fn cmp(&self, other: &ReplacementLayer) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReplacementLayer
impl PartialEq for ReplacementLayer
Source§impl PartialOrd for ReplacementLayer
impl PartialOrd for ReplacementLayer
Source§impl Serialize for ReplacementLayer
impl Serialize for ReplacementLayer
impl StructuralPartialEq for ReplacementLayer
Auto Trait Implementations§
impl Freeze for ReplacementLayer
impl RefUnwindSafe for ReplacementLayer
impl Send for ReplacementLayer
impl Sync for ReplacementLayer
impl Unpin for ReplacementLayer
impl UnsafeUnpin for ReplacementLayer
impl UnwindSafe for ReplacementLayer
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.