Struct entmet_lib::entities::entity::HorseVariant
source · pub struct HorseVariant {
pub color: HorseColor,
pub marking: HorseMarking,
}Expand description
A struct for holding the data neccessary to construct the horse variant
Fields§
§color: HorseColorThe color of the horse
marking: HorseMarkingThe marking that the horse has
Trait Implementations§
source§impl Clone for HorseVariant
impl Clone for HorseVariant
source§fn clone(&self) -> HorseVariant
fn clone(&self) -> HorseVariant
Returns a copy 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 Default for HorseVariant
impl Default for HorseVariant
source§fn default() -> HorseVariant
fn default() -> HorseVariant
Returns the “default value” for a type. Read more
source§impl Into<i32> for HorseVariant
impl Into<i32> for HorseVariant
source§impl PartialEq for HorseVariant
impl PartialEq for HorseVariant
source§fn eq(&self, other: &HorseVariant) -> bool
fn eq(&self, other: &HorseVariant) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for HorseVariant
impl Eq for HorseVariant
impl StructuralPartialEq for HorseVariant
Auto Trait Implementations§
impl Freeze for HorseVariant
impl RefUnwindSafe for HorseVariant
impl Send for HorseVariant
impl Sync for HorseVariant
impl Unpin for HorseVariant
impl UnwindSafe for HorseVariant
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