pub struct PowerEnvelopeElement {
pub duration: Duration,
pub upper_limit: f64,
pub lower_limit: f64,
}Expand description
One step of an envelope: a ceiling and a floor, for a while.
Fields§
§duration: DurationHow long this step lasts.
upper_limit: f64The ceiling. Must be at or above lower_limit.
lower_limit: f64The floor. Must be at or below upper_limit.
Implementations§
Trait Implementations§
Source§impl Clone for PowerEnvelopeElement
impl Clone for PowerEnvelopeElement
Source§fn clone(&self) -> PowerEnvelopeElement
fn clone(&self) -> PowerEnvelopeElement
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 PowerEnvelopeElement
Source§impl Debug for PowerEnvelopeElement
impl Debug for PowerEnvelopeElement
Source§impl<'de> Deserialize<'de> for PowerEnvelopeElement
impl<'de> Deserialize<'de> for PowerEnvelopeElement
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 PowerEnvelopeElement
impl PartialEq for PowerEnvelopeElement
Source§impl Serialize for PowerEnvelopeElement
impl Serialize for PowerEnvelopeElement
impl StructuralPartialEq for PowerEnvelopeElement
Auto Trait Implementations§
impl Freeze for PowerEnvelopeElement
impl RefUnwindSafe for PowerEnvelopeElement
impl Send for PowerEnvelopeElement
impl Sync for PowerEnvelopeElement
impl Unpin for PowerEnvelopeElement
impl UnsafeUnpin for PowerEnvelopeElement
impl UnwindSafe for PowerEnvelopeElement
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