pub enum PlanetType {
A,
B,
C,
D,
}Expand description
Planet types definitions, intended to be passed to the planet constructor. Identifies the planet rules constraints, with each type having its own rules.
Variants§
Implementations§
Source§impl PlanetType
impl PlanetType
Sourcepub fn constraints(&self) -> PlanetConstraints
pub fn constraints(&self) -> PlanetConstraints
Returns the constraints associated to the planet type, as described in the project specifications.
Trait Implementations§
Source§impl Clone for PlanetType
impl Clone for PlanetType
Source§fn clone(&self) -> PlanetType
fn clone(&self) -> PlanetType
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 PlanetType
impl Debug for PlanetType
impl Copy for PlanetType
Auto Trait Implementations§
impl Freeze for PlanetType
impl RefUnwindSafe for PlanetType
impl Send for PlanetType
impl Sync for PlanetType
impl Unpin for PlanetType
impl UnwindSafe for PlanetType
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