[][src]Struct gstreamer::bufferlist::BufferList

pub struct BufferList { /* fields omitted */ }

Methods

impl BufferList[src]

pub unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>[src]

pub unsafe fn replace_ptr(&mut self, ptr: *mut GstBufferList)[src]

pub fn make_mut(&mut self) -> &mut BufferListRef[src]

pub fn get_mut(&mut self) -> Option<&mut BufferListRef>[src]

pub fn is_writable(&self) -> bool[src]

pub unsafe fn into_ptr(self) -> *mut GstBufferList[src]

impl BufferList[src]

pub fn new() -> Self[src]

Creates a new, empty BufferList. The caller is responsible for unreffing the returned BufferList.

Free-function: gst_buffer_list_unref

Returns

the new BufferList. BufferList::unref after usage.

pub fn new_sized(size: usize) -> Self[src]

Creates a new, empty BufferList. The caller is responsible for unreffing the returned BufferList. The list will have size space preallocated so that memory reallocations can be avoided.

Free-function: gst_buffer_list_unref

size

an initial reserved size

Returns

the new BufferList. BufferList::unref after usage.

Methods from Deref<Target = BufferListRef>

pub unsafe fn as_ptr(&self) -> *const GstBufferList[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstBufferList[src]

pub fn copy(&self) -> BufferList[src]

pub fn copy_deep(&self) -> BufferList[src]

pub fn get(&self, idx: u32) -> Option<&BufferRef>[src]

pub fn get_owned(&self, idx: u32) -> Option<Buffer>[src]

pub fn len(&self) -> usize[src]

pub fn calculate_size(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn iter(&self) -> Iter[src]

pub fn iter_owned(&self) -> IterOwned[src]

pub fn foreach<F: FnMut(&BufferRef, u32) -> bool>(&self, func: F) -> bool[src]

Trait Implementations

impl AsRef<BufferListRef> for BufferList[src]

impl Borrow<BufferListRef> for BufferList[src]

impl Clone for BufferList[src]

impl Debug for BufferList[src]

impl Default for BufferList[src]

impl Deref for BufferList[src]

type Target = BufferListRef

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for BufferList[src]

impl Drop for BufferList[src]

impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList[src]

impl FromGlibContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList[src]

impl FromGlibPtrBorrow<*const GstBufferList> for BufferList[src]

impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList[src]

impl FromGlibPtrFull<*const GstBufferList> for BufferList[src]

impl FromGlibPtrFull<*mut GstBufferList> for BufferList[src]

impl FromGlibPtrNone<*const GstBufferList> for BufferList[src]

impl FromGlibPtrNone<*mut GstBufferList> for BufferList[src]

impl<'a> FromValueOptional<'a> for BufferList[src]

impl GlibPtrDefault for BufferList[src]

impl Send for BufferList[src]

impl Serialize for BufferList[src]

impl SetValue for BufferList[src]

impl SetValueOptional for BufferList[src]

impl StaticType for BufferList[src]

impl Sync for BufferList[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList[src]

impl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList[src]

type Storage = &'a Self

impl<'a> ToGlibPtr<'a, *mut GstBufferList> for BufferList[src]

type Storage = &'a Self

impl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList[src]

type Storage = &'a mut Self

Auto Trait Implementations

impl RefUnwindSafe for BufferList

impl Unpin for BufferList

impl UnwindSafe for BufferList

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[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.