[][src]Struct audiopus::MutSignals

pub struct MutSignals<'a, T>(_);

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]

type Error = Error

fn try_into(self) -> Result<MutSignals<'a, T>>[src]

Conversion from MutSignals to MutSignals should never fail.

Auto Trait Implementations

impl<'a, T> Send for MutSignals<'a, T> where
    T: Send

impl<'a, T> Sync for MutSignals<'a, T> where
    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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]