pub struct SawToothProfileConfig {
phase1_length: u32,
phase2_length: u32,
phase3_length: u32,
phase4_length: u32,
}Expand description
Holds the data for the calculation of the saw tooth profile. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§phase1_length: u32Phase 1 is a ramp from zero to one. The length describes the number of iterations necessary to reach the end of the ramp.
phase2_length: u32Phase 2 is a constant value of one. The length describes for how many iterations this value is kept.
phase3_length: u32Phase 3 is a ramp from one to zero. The length describes the number of iterations necessary to reach the end of the ramp.
phase4_length: u32Phase 4 is a constant value of zero. The length describes for how many iterations this value is kept.
Trait Implementations§
Source§impl Clone for SawToothProfileConfig
impl Clone for SawToothProfileConfig
Source§fn clone(&self) -> SawToothProfileConfig
fn clone(&self) -> SawToothProfileConfig
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<'de> Deserialize<'de> for SawToothProfileConfig
impl<'de> Deserialize<'de> for SawToothProfileConfig
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
Auto Trait Implementations§
impl Freeze for SawToothProfileConfig
impl RefUnwindSafe for SawToothProfileConfig
impl Send for SawToothProfileConfig
impl Sync for SawToothProfileConfig
impl Unpin for SawToothProfileConfig
impl UnwindSafe for SawToothProfileConfig
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