pub struct TimedValue<V> {
pub sample_offset: usize,
pub value: V,
}Expand description
Represents a value at a specific point in time in a buffer.
Fields§
§sample_offset: usizeThe number of samples from the start of the buffer.
value: VThe value at this point in time.
Trait Implementations§
Source§impl<V: Clone> Clone for TimedValue<V>
impl<V: Clone> Clone for TimedValue<V>
Source§fn clone(&self) -> TimedValue<V>
fn clone(&self) -> TimedValue<V>
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<V: Debug> Debug for TimedValue<V>
impl<V: Debug> Debug for TimedValue<V>
Source§impl<V: PartialEq> PartialEq for TimedValue<V>
impl<V: PartialEq> PartialEq for TimedValue<V>
impl<V> StructuralPartialEq for TimedValue<V>
Auto Trait Implementations§
impl<V> Freeze for TimedValue<V>where
V: Freeze,
impl<V> RefUnwindSafe for TimedValue<V>where
V: RefUnwindSafe,
impl<V> Send for TimedValue<V>where
V: Send,
impl<V> Sync for TimedValue<V>where
V: Sync,
impl<V> Unpin for TimedValue<V>where
V: Unpin,
impl<V> UnwindSafe for TimedValue<V>where
V: UnwindSafe,
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