pub struct ManaAtom;Expand description
Bitmask constants for mana atoms, matching Java ManaAtom.
Each bit represents a property of a mana symbol.
Implementations§
Source§impl ManaAtom
impl ManaAtom
pub const WHITE: u16 = 1
pub const BLUE: u16 = 2
pub const BLACK: u16 = 4
pub const RED: u16 = 8
pub const GREEN: u16 = 16
pub const COLORLESS: u16 = 32
pub const GENERIC: u16 = 64
pub const IS_X: u16 = 256
pub const OR_2_GENERIC: u16 = 512
pub const OR_2_LIFE: u16 = 1024
pub const IS_SNOW: u16 = 2048
pub const ALL_MANA_COLORS: u16
pub const ALL_MANA_TYPES: u16
pub const COLORS_SUPERPOSITION: u16 = Self::ALL_MANA_COLORS
pub fn from_char(c: char) -> u16
Auto Trait Implementations§
impl Freeze for ManaAtom
impl RefUnwindSafe for ManaAtom
impl Send for ManaAtom
impl Sync for ManaAtom
impl Unpin for ManaAtom
impl UnsafeUnpin for ManaAtom
impl UnwindSafe for ManaAtom
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