pub struct GridCell {
pub letter: char,
pub value: u8,
pub multiplier: Option<Multiplier>,
pub has_gem: bool,
}Expand description
A single cell in the game grid.
Fields§
§letter: char§value: u8§multiplier: Option<Multiplier>§has_gem: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for GridCell
impl<'de> Deserialize<'de> for GridCell
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 Freeze for GridCell
impl RefUnwindSafe for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnwindSafe for GridCell
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