pub struct ColoredMana {
pub color: Color,
}Expand description
A mana symbol with a number on it, representing a fixed amount of any kind of mana.
Fields§
§color: ColorTrait Implementations§
Source§impl Clone for ColoredMana
impl Clone for ColoredMana
Source§fn clone(&self) -> ColoredMana
fn clone(&self) -> ColoredMana
Returns a duplicate of the value. Read more
1.0.0 · 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 ColoredMana
impl Debug for ColoredMana
Source§impl<'de> Deserialize<'de> for ColoredMana
impl<'de> Deserialize<'de> for ColoredMana
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 Display for ColoredMana
impl Display for ColoredMana
Source§impl Hash for ColoredMana
impl Hash for ColoredMana
Source§impl Idris for ColoredMana
impl Idris for ColoredMana
Source§impl Ord for ColoredMana
impl Ord for ColoredMana
Source§fn cmp(&self, other: &ColoredMana) -> Ordering
fn cmp(&self, other: &ColoredMana) -> Ordering
1.21.0 · 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 ColoredMana
impl PartialEq for ColoredMana
Source§impl PartialOrd for ColoredMana
impl PartialOrd for ColoredMana
Source§impl Serialize for ColoredMana
impl Serialize for ColoredMana
impl Copy for ColoredMana
impl Eq for ColoredMana
impl StructuralPartialEq for ColoredMana
Auto Trait Implementations§
impl Freeze for ColoredMana
impl RefUnwindSafe for ColoredMana
impl Send for ColoredMana
impl Sync for ColoredMana
impl Unpin for ColoredMana
impl UnwindSafe for ColoredMana
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