pub struct Lap { /* private fields */ }
Expand description
Hold all channels of a lap.
Please not the difference between the lap index (.idx()
), which starts at
0 and indicates the lap position within the collection of laps, and the lap
number (.number()
), which is the counter and which is what is used in
common parlance and starts at 1. In other words, .number()
will always
return .idx() + 1
.
Implementations
sourceimpl Lap
impl Lap
sourcepub fn new(info: LapInfo, data: Vec<Channel>) -> Self
pub fn new(info: LapInfo, data: Vec<Channel>) -> Self
Construct a new Lap
from a LapInfo
object and a set of channel data.
sourcepub fn number(&self) -> usize
pub fn number(&self) -> usize
Convenience function to obtain lap number as used in common motorsport parlance, which starts at 1.
sourcepub fn channel_names(&self) -> Vec<String>
pub fn channel_names(&self) -> Vec<String>
List of the names of all channels in this Lap
.
sourcepub fn max_frequency(&self) -> f64
pub fn max_frequency(&self) -> f64
Returns the highest frequency of any channel in this lap.
Trait Implementations
impl StructuralPartialEq for Lap
Auto Trait Implementations
impl RefUnwindSafe for Lap
impl Send for Lap
impl Sync for Lap
impl Unpin for Lap
impl UnwindSafe for Lap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more