Struct gstreamer::bufferlist::BufferList [−][src]
pub struct BufferList { /* fields omitted */ }Implementations
impl BufferList[src]
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]
impl BufferList[src]pub fn new() -> Self[src]
pub fn new() -> Self[src]Creates a new, empty crate::BufferList. The caller is responsible for unreffing
the returned crate::BufferList.
Free-function: gst_buffer_list_unref
Returns
the new crate::BufferList. gst_buffer_list_unref()
after usage.
pub fn new_sized(size: usize) -> Self[src]
pub fn new_sized(size: usize) -> Self[src]Creates a new, empty crate::BufferList. The caller is responsible for unreffing
the returned crate::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 crate::BufferList. gst_buffer_list_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]
v1_14 only.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 AsRef<BufferListRef> for BufferList[src]fn as_ref(&self) -> &BufferListRef[src]
fn as_ref(&self) -> &BufferListRef[src]Performs the conversion.
impl Borrow<BufferListRef> for BufferList[src]
impl Borrow<BufferListRef> for BufferList[src]fn borrow(&self) -> &BufferListRef[src]
fn borrow(&self) -> &BufferListRef[src]Immutably borrows from an owned value. Read more
impl Clone for BufferList[src]
impl Clone for BufferList[src]impl Debug for BufferList[src]
impl Debug for BufferList[src]impl Default for BufferList[src]
impl Default for BufferList[src]impl Deref for BufferList[src]
impl Deref for BufferList[src]type Target = BufferListRef
type Target = BufferListRefThe resulting type after dereferencing.
impl<'de> Deserialize<'de> for BufferList[src]
impl<'de> Deserialize<'de> for BufferList[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]Deserialize this value from the given Serde deserializer. Read more
impl Drop for BufferList[src]
impl Drop for BufferList[src]impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList[src]
impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList[src]impl FromGlibContainerAsVec<*mut GstBufferList, *mut *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, *const *mut GstBufferList> for BufferList[src]unsafe fn from_glib_none_as_vec(ptr: *const *mut GstBufferList) -> Vec<Self>[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstBufferList) -> Vec<Self>[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstBufferList) -> Vec<Self>[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList[src]unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>[src]
impl FromGlibPtrBorrow<*const GstBufferList> for BufferList[src]
impl FromGlibPtrBorrow<*const GstBufferList> for BufferList[src]unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>[src]
unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>[src]Safety Read more
impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList[src]
impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList[src]unsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>[src]
unsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>[src]Safety Read more
impl FromGlibPtrFull<*const GstBufferList> for BufferList[src]
impl FromGlibPtrFull<*const GstBufferList> for BufferList[src]unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self[src]
unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self[src]Safety Read more
impl FromGlibPtrFull<*mut GstBufferList> for BufferList[src]
impl FromGlibPtrFull<*mut GstBufferList> for BufferList[src]unsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self[src]
unsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self[src]Safety Read more
impl FromGlibPtrNone<*const GstBufferList> for BufferList[src]
impl FromGlibPtrNone<*const GstBufferList> for BufferList[src]unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self[src]
unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self[src]Safety Read more
impl FromGlibPtrNone<*mut GstBufferList> for BufferList[src]
impl FromGlibPtrNone<*mut GstBufferList> for BufferList[src]unsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self[src]
unsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self[src]Safety Read more
impl<'a> FromValue<'a> for BufferList[src]
impl<'a> FromValue<'a> for BufferList[src]type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>Value type checker.
unsafe fn from_value(value: &'a Value) -> Self[src]
unsafe fn from_value(value: &'a Value) -> Self[src]Get the contained value from a Value. Read more
impl GlibPtrDefault for BufferList[src]
impl GlibPtrDefault for BufferList[src]impl Serialize for BufferList[src]
impl Serialize for BufferList[src]impl StaticType for BufferList[src]
impl StaticType for BufferList[src]fn static_type() -> Type[src]
fn static_type() -> Type[src]Returns the type identifier of Self.
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList[src]type Storage = (Vec<Stash<'a, *mut GstBufferList, BufferList>>, Option<Vec<*mut GstBufferList>>)
fn to_glib_none_from_slice(
t: &'a [BufferList]
) -> (*const *mut GstBufferList, Self::Storage)[src]
t: &'a [BufferList]
) -> (*const *mut GstBufferList, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [BufferList]
) -> (*const *mut GstBufferList, Self::Storage)[src]
_: &'a [BufferList]
) -> (*const *mut GstBufferList, Self::Storage)
fn to_glib_full_from_slice(_: &[BufferList]) -> *const *mut GstBufferList[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList[src]type Storage = (Vec<Stash<'a, *mut GstBufferList, Self>>, Option<Vec<*mut GstBufferList>>)
fn to_glib_none_from_slice(
t: &'a [BufferList]
) -> (*mut *mut GstBufferList, Self::Storage)[src]
t: &'a [BufferList]
) -> (*mut *mut GstBufferList, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [BufferList]
) -> (*mut *mut GstBufferList, Self::Storage)[src]
t: &'a [BufferList]
) -> (*mut *mut GstBufferList, Self::Storage)
fn to_glib_full_from_slice(t: &[BufferList]) -> *mut *mut GstBufferList[src]
impl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList[src]
impl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>[src]
fn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>[src]Transfer: none. Read more
fn to_glib_full(&self) -> *const GstBufferList[src]
fn to_glib_full(&self) -> *const GstBufferList[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]Transfer: container. Read more
impl<'a> ToGlibPtr<'a, *mut GstBufferList> for BufferList[src]
impl<'a> ToGlibPtr<'a, *mut GstBufferList> for BufferList[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut GstBufferList, Self>[src]
fn to_glib_none(&'a self) -> Stash<'a, *mut GstBufferList, Self>[src]Transfer: none. Read more
fn to_glib_full(&self) -> *mut GstBufferList[src]
fn to_glib_full(&self) -> *mut GstBufferList[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]Transfer: container. Read more
impl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList[src]
impl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList[src]impl ToValue for BufferList[src]
impl ToValue for BufferList[src]impl ToValueOptional for BufferList[src]
impl ToValueOptional for BufferList[src]fn to_value_optional(s: Option<&Self>) -> Value[src]
fn to_value_optional(s: Option<&Self>) -> Value[src]Convert an Option to a Value.
impl ValueType for BufferList[src]
impl ValueType for BufferList[src]impl Send for BufferList[src]
impl Sync for BufferList[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized, [src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized, [src]pub fn to_send_value(&self) -> SendValue[src]
pub fn to_send_value(&self) -> SendValue[src]Returns a SendValue clone of self.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>, [src]
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,