pub struct SHRSweep {
pub number: i32,
pub frequency: f64,
pub amplitude: f64,
pub header: SHRSweepHeader,
}Expand description
Struct representing a sweep within an SHR file.
Fields§
§number: i32§frequency: f64§amplitude: f64§header: SHRSweepHeaderImplementations§
Source§impl SHRSweep
impl SHRSweep
Sourcepub fn new(
sweep_number: i32,
sweep_header: SHRSweepHeader,
sweep_data_raw: Vec<f32>,
parsing_type: SHRParsingType,
first_bin_freq_hz: f64,
bin_size_hz: f64,
) -> Self
pub fn new( sweep_number: i32, sweep_header: SHRSweepHeader, sweep_data_raw: Vec<f32>, parsing_type: SHRParsingType, first_bin_freq_hz: f64, bin_size_hz: f64, ) -> Self
Constructs a new SHRSweep instance.
§Arguments
sweep_number- The number of the sweep.sweep_header- The header of the sweep.sweep_data_raw- The raw data of the sweep.parsing_type- The type of parsing to be performed.first_bin_freq_hz- The frequency of the first bin in Hz.bin_size_hz- The size of each bin in Hz.
pub fn get_header(&self) -> &SHRSweepHeader
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SHRSweep
impl<'de> Deserialize<'de> for SHRSweep
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 SHRSweep
impl RefUnwindSafe for SHRSweep
impl Send for SHRSweep
impl Sync for SHRSweep
impl Unpin for SHRSweep
impl UnwindSafe for SHRSweep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more