#[non_exhaustive]pub enum AtmosphereModel {
Standard(Ussa76),
Sounding(Box<SoundingProfile>),
}Expand description
Any of the atmosphere models, tagged by model when serialized.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Standard(Ussa76)
Ussa76, optionally offset.
Sounding(Box<SoundingProfile>)
SoundingProfile, boxed because it is far larger than the standard.
Trait Implementations§
Source§impl Atmosphere for AtmosphereModel
impl Atmosphere for AtmosphereModel
Source§impl Clone for AtmosphereModel
impl Clone for AtmosphereModel
Source§fn clone(&self) -> AtmosphereModel
fn clone(&self) -> AtmosphereModel
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 AtmosphereModel
impl Debug for AtmosphereModel
Source§impl Default for AtmosphereModel
impl Default for AtmosphereModel
Source§impl<'de> Deserialize<'de> for AtmosphereModel
impl<'de> Deserialize<'de> for AtmosphereModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AtmosphereModel
impl PartialEq for AtmosphereModel
Source§fn eq(&self, other: &AtmosphereModel) -> bool
fn eq(&self, other: &AtmosphereModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AtmosphereModel
impl Serialize for AtmosphereModel
impl StructuralPartialEq for AtmosphereModel
Auto Trait Implementations§
impl Freeze for AtmosphereModel
impl RefUnwindSafe for AtmosphereModel
impl Send for AtmosphereModel
impl Sync for AtmosphereModel
impl Unpin for AtmosphereModel
impl UnsafeUnpin for AtmosphereModel
impl UnwindSafe for AtmosphereModel
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