pub struct BiomeZone {
pub biome: BiomeType,
pub latitude_range: [f32; 2],
pub altitude_range: [f32; 2],
pub koppen: &'static str,
pub prevailing_wind_dir: f32,
pub mean_wind_speed: f32,
}Expand description
A climate zone associated with a biome.
Fields§
§biome: BiomeType§latitude_range: [f32; 2]Latitude range [min, max] degrees.
altitude_range: [f32; 2]Altitude range [min, max] metres.
koppen: &'static strKoppen climate classification code.
prevailing_wind_dir: f32Dominant wind direction (radians from east).
mean_wind_speed: f32Mean wind speed (m/s).
Implementations§
Source§impl BiomeZone
impl BiomeZone
pub fn temperate_deciduous() -> Self
pub fn tropical_rainforest() -> Self
pub fn hot_desert() -> Self
pub fn boreal() -> Self
Sourcepub fn contains_lat(&self, lat: f32) -> bool
pub fn contains_lat(&self, lat: f32) -> bool
Is the given latitude inside this zone’s range?
Sourcepub fn contains_alt(&self, alt: f32) -> bool
pub fn contains_alt(&self, alt: f32) -> bool
Is the given altitude inside this zone’s range?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BiomeZone
impl RefUnwindSafe for BiomeZone
impl Send for BiomeZone
impl Sync for BiomeZone
impl Unpin for BiomeZone
impl UnsafeUnpin for BiomeZone
impl UnwindSafe for BiomeZone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.