pub struct Event {
pub at_secs: f64,
pub end_secs: f64,
pub next_secs: f64,
pub kind: Kind,
pub cue: Cue,
pub sound: Sound,
pub hit: Option<Hit>,
pub attack_secs: f64,
pub level_db: f64,
pub period: Option<(f64, f64)>,
pub voices: Vec<Voiced>,
pub main: Option<usize>,
}Fields§
§at_secs: f64§end_secs: f64Where it falls 30 dB under its peak, or the next event.
next_secs: f64§kind: Kind§cue: Cue§sound: Sound§hit: Option<Hit>§attack_secs: f64§level_db: f64§period: Option<(f64, f64)>§voices: Vec<Voiced>§main: Option<usize>The loudest new voice, else the loudest.
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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