pub struct StateTerrain {
pub terrain_type: Terrain,
pub turns_remaining: i8,
}Fields§
§terrain_type: Terrain§turns_remaining: i8Implementations§
Source§impl StateTerrain
impl StateTerrain
pub fn serialize(&self) -> String
pub fn deserialize(serialized: &str) -> StateTerrain
Trait Implementations§
Source§impl Clone for StateTerrain
impl Clone for StateTerrain
Source§fn clone(&self) -> StateTerrain
fn clone(&self) -> StateTerrain
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 StateTerrain
impl Debug for StateTerrain
Source§impl PartialEq for StateTerrain
impl PartialEq for StateTerrain
impl StructuralPartialEq for StateTerrain
Auto Trait Implementations§
impl Freeze for StateTerrain
impl RefUnwindSafe for StateTerrain
impl Send for StateTerrain
impl Sync for StateTerrain
impl Unpin for StateTerrain
impl UnwindSafe for StateTerrain
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