pub enum PlanetKind {
Terrestrial,
GasGiant,
IceGiant,
DwarfPlanet,
Exoplanet,
RoguePlanet,
Unknown,
Custom(String),
}Variants§
Trait Implementations§
Source§impl Clone for PlanetKind
impl Clone for PlanetKind
Source§fn clone(&self) -> PlanetKind
fn clone(&self) -> PlanetKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlanetKind
impl Debug for PlanetKind
Source§impl Display for PlanetKind
impl Display for PlanetKind
Source§impl FromStr for PlanetKind
impl FromStr for PlanetKind
Source§impl Hash for PlanetKind
impl Hash for PlanetKind
Source§impl Ord for PlanetKind
impl Ord for PlanetKind
Source§fn cmp(&self, other: &PlanetKind) -> Ordering
fn cmp(&self, other: &PlanetKind) -> Ordering
1.21.0 (const: unstable) · 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 PlanetKind
impl PartialEq for PlanetKind
Source§fn eq(&self, other: &PlanetKind) -> bool
fn eq(&self, other: &PlanetKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PlanetKind
impl PartialOrd for PlanetKind
impl Eq for PlanetKind
impl StructuralPartialEq for PlanetKind
Auto Trait Implementations§
impl Freeze for PlanetKind
impl RefUnwindSafe for PlanetKind
impl Send for PlanetKind
impl Sync for PlanetKind
impl Unpin for PlanetKind
impl UnsafeUnpin for PlanetKind
impl UnwindSafe for PlanetKind
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