[−][src]Struct audiopus::MutSignals
A newtype wrapping around a mutable buffer. They represent mutably borrowed arguments that will be filled by Opus. E.g. you pass this to an encode-method and Opus encodes data into the underlying buffer.
Info: This type is only verifying that Opus' requirement are not violated.
Methods
impl<'a, T> MutSignals<'a, T>
[src]
pub fn as_mut_ptr(&mut self) -> *mut T
[src]
pub fn i32_len(&self) -> i32
[src]
Due to checking the length during construction of this newtype wrapping
around a immutably borrowed buffer, we can safely cast usize
to i32
without worrying about usize
being too large for i32
.
Trait Implementations
impl<'a, T> TryInto<MutSignals<'a, T>> for &'a mut [T]
[src]
type Error = Error
fn try_into(self) -> Result<MutSignals<'a, T>>
[src]
Fails if passed self
's length is greater than std::i32::MAX
.
impl<'a, T> TryInto<MutSignals<'a, T>> for &'a mut Vec<T>
[src]
type Error = Error
fn try_into(self) -> Result<MutSignals<'a, T>>
[src]
Fails if passed self
's length is greater than std::i32::MAX
.
impl<'a, T> TryInto<MutSignals<'a, T>> for &'a mut MutSignals<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> Send for MutSignals<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for MutSignals<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for MutSignals<'a, T>
impl<'a, T> !UnwindSafe for MutSignals<'a, T>
impl<'a, T> RefUnwindSafe for MutSignals<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,