#[non_exhaustive]pub enum WindInterpolation {
SpeedDirection,
Components,
}Expand description
How a LayeredWind fills in between its levels.
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.
SpeedDirection
Speed linearly in height, and direction linearly along the shorter arc between the two levels (clockwise when they are exactly opposite). A wind that veers keeps its speed. A calm level (speed 0, whose reported direction means nothing) takes the other level’s direction, so the wind grows out of calm without turning.
Components
The East and North components linearly in height, as RocketPy does. Speed dips between levels whose directions differ.
Trait Implementations§
Source§impl Clone for WindInterpolation
impl Clone for WindInterpolation
Source§fn clone(&self) -> WindInterpolation
fn clone(&self) -> WindInterpolation
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 moreimpl Copy for WindInterpolation
Source§impl Debug for WindInterpolation
impl Debug for WindInterpolation
Source§impl Default for WindInterpolation
impl Default for WindInterpolation
Source§fn default() -> WindInterpolation
fn default() -> WindInterpolation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindInterpolation
impl<'de> Deserialize<'de> for WindInterpolation
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
impl Eq for WindInterpolation
Source§impl Hash for WindInterpolation
impl Hash for WindInterpolation
Source§impl PartialEq for WindInterpolation
impl PartialEq for WindInterpolation
Source§fn eq(&self, other: &WindInterpolation) -> bool
fn eq(&self, other: &WindInterpolation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WindInterpolation
impl Serialize for WindInterpolation
impl StructuralPartialEq for WindInterpolation
Auto Trait Implementations§
impl Freeze for WindInterpolation
impl RefUnwindSafe for WindInterpolation
impl Send for WindInterpolation
impl Sync for WindInterpolation
impl Unpin for WindInterpolation
impl UnsafeUnpin for WindInterpolation
impl UnwindSafe for WindInterpolation
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