audiopus

Trait TryInto

Source
pub trait TryInto<T>: Sized {
    type Error;

    // Required method
    fn try_into(self) -> Result<T>;
}
Expand description

While TryInto is nightly, we use our own implementation to stay stable.

Required Associated Types§

Required Methods§

Source

fn try_into(self) -> Result<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> TryInto<MutPacket<'a>> for &'a mut Vec<u8>

Source§

impl<'a> TryInto<MutPacket<'a>> for &'a mut [u8]

Source§

impl<'a> TryInto<Packet<'a>> for &'a Vec<u8>

Source§

impl<'a> TryInto<Packet<'a>> for &'a [u8]

Source§

impl<'a, T> TryInto<MutSignals<'a, T>> for &'a mut [T]

Source§

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

Fails if passed self’s length is greater than std::i32::MAX.

Source§

type Error = Error

Source§

impl<'a, T> TryInto<MutSignals<'a, T>> for &'a mut Vec<T>

Source§

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

Fails if passed self’s length is greater than std::i32::MAX.

Source§

type Error = Error

Implementors§

Source§

impl<'a> TryInto<&'a MutPacket<'a>> for &'a MutPacket<'a>

Source§

impl<'a> TryInto<Packet<'a>> for &'a Packet<'a>

Source§

impl<'a, T> TryInto<MutSignals<'a, T>> for &'a mut MutSignals<'a, T>