pub struct SampleWithData<'t, Api: Api>(/* private fields */);Expand description
Sample over borrowed audio data.
Methods from Deref<Target = Sample<Api>>§
Sourcepub fn length(&self) -> c_float
pub fn length(&self) -> c_float
Returns the length, in seconds.
Equivalent to sys::ffi::playdate_sound_sample::getLength
Sourcepub fn get_data<'t>(&'t self) -> SampleData<'t>
pub fn get_data<'t>(&'t self) -> SampleData<'t>
Equivalent to sys::ffi::playdate_sound_sample::getData
Trait Implementations§
Source§impl<Api: Api> AsRef<Sample<Api>> for SampleWithData<'_, Api>
impl<Api: Api> AsRef<Sample<Api>> for SampleWithData<'_, Api>
Source§impl<'t, Api: Debug + Api> Debug for SampleWithData<'t, Api>
impl<'t, Api: Debug + Api> Debug for SampleWithData<'t, Api>
Auto Trait Implementations§
impl<'t, Api> Freeze for SampleWithData<'t, Api>where
Api: Freeze,
impl<'t, Api> RefUnwindSafe for SampleWithData<'t, Api>where
Api: RefUnwindSafe,
impl<'t, Api> !Send for SampleWithData<'t, Api>
impl<'t, Api> !Sync for SampleWithData<'t, Api>
impl<'t, Api> Unpin for SampleWithData<'t, Api>where
Api: Unpin,
impl<'t, Api> !UnwindSafe for SampleWithData<'t, Api>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,
impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.