pub struct Given {
pub peaks: usize,
pub frame: Option<f64>,
pub depth: usize,
pub oversample: u32,
pub floor_db: f64,
pub norm: Norm,
pub max_pairs: usize,
pub window: Option<f64>,
pub curve: bool,
pub bpm: Option<f64>,
pub cell_secs: f64,
pub smooth_secs: f64,
}Expand description
The arguments a Representation is built from, each at its default until written.
Fields§
§peaks: usize§frame: Option<f64>None until written: spectrum then sizes its transform to the range, and every
other framed reading steps by DEFAULT_FRAME_SECS.
depth: usize§oversample: u32§floor_db: f64§norm: Norm§max_pairs: usize§window: Option<f64>None until written: each windowed reading then takes its own default.
curve: bool§bpm: Option<f64>§cell_secs: f64§smooth_secs: f64Trait Implementations§
impl Copy for Given
impl StructuralPartialEq for Given
Auto Trait Implementations§
impl Freeze for Given
impl RefUnwindSafe for Given
impl Send for Given
impl Sync for Given
impl Unpin for Given
impl UnsafeUnpin for Given
impl UnwindSafe for Given
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