gstreamer::meta

Trait ByteArrayInterface

Source
pub trait ByteArrayInterface: AsMut<[u8]> {
    // Required methods
    fn initial_len(&self) -> usize;
    fn resize(&mut self, size: usize) -> Option<&mut [u8]>;
}

Required Methods§

Source

fn initial_len(&self) -> usize

Source

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Implementations on Foreign Types§

Source§

impl ByteArrayInterface for &mut [u8]

Source§

fn initial_len(&self) -> usize

Source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Source§

impl ByteArrayInterface for Vec<u8>

Source§

fn initial_len(&self) -> usize

Source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Source§

impl<A: Array<Item = u8>> ByteArrayInterface for SmallVec<A>

Source§

fn initial_len(&self) -> usize

Source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Source§

impl<const N: usize> ByteArrayInterface for [u8; N]

Source§

fn initial_len(&self) -> usize

Source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Implementors§