pub enum Attribute {
Text(String),
Int(isize),
Flag(bool),
Set(BTreeSet<Attribute>),
CardID(CardID),
PlayerID(PlayerID),
GridID(GridID),
DeckID(DeckID),
GridPoint((GridID, (isize, isize))),
}Variants§
Text(String)
Int(isize)
Flag(bool)
Set(BTreeSet<Attribute>)
CardID(CardID)
PlayerID(PlayerID)
GridID(GridID)
DeckID(DeckID)
GridPoint((GridID, (isize, isize)))
Implementations§
Source§impl Attribute
impl Attribute
pub fn int(&self) -> Option<isize>
pub fn text(&self) -> Option<&str>
pub fn flag(&self) -> Option<bool>
pub fn set(&self) -> Option<&BTreeSet<Attribute>>
pub fn card_id(&self) -> Option<CardID>
pub fn deck_id(&self) -> Option<DeckID>
pub fn player_id(&self) -> Option<PlayerID>
pub fn grid_id(&self) -> Option<GridID>
pub fn grid_point(&self) -> Option<(GridID, (isize, isize))>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
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 Ord for Attribute
impl Ord for Attribute
Source§impl PartialOrd for Attribute
impl PartialOrd for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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