Struct bwavfile::Cue

source ·
pub struct Cue {
    pub frame: u32,
    pub length: Option<u32>,
    pub label: Option<String>,
    pub note: Option<String>,
    pub offset: u32,
}
Expand description

A cue point recorded in the cue and adtl metadata.

Resources

Not Implemented

Fields§

§frame: u32

The time of this marker

§length: Option<u32>

The length of this marker, if it is a range

§label: Option<String>

The text “label”/name of this marker if provided

§note: Option<String>

The text “note”/comment of this marker if provided

§offset: u32

The offser of this marker

Note: Applications use the frame and offset fields in different ways. iZotope RX Audio Editor writes the marker position to both fields, while a Sound Devices recorder writes the marker position to only the offset field.

Implementations§

source§

impl Cue

source

pub fn collect_from( cue_chunk: &[u8], adtl_chunk: Option<&[u8]> ) -> Result<Vec<Cue>, Error>

Auto Trait Implementations§

§

impl RefUnwindSafe for Cue

§

impl Send for Cue

§

impl Sync for Cue

§

impl Unpin for Cue

§

impl UnwindSafe for Cue

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<S> FromSample<S> for S

source§

fn from_sample_(s: S) -> S

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> ToSample<U> for Twhere U: FromSample<T>,

source§

fn to_sample_(self) -> U

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>,