[−][src]Struct gstreamer::bufferlist::BufferList
Implementations
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]
fn as_ref(&self) -> &BufferListRef
[src]
impl Borrow<BufferListRef> for BufferList
[src]
fn borrow(&self) -> &BufferListRef
[src]
impl Clone for BufferList
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BufferList
[src]
impl Default for BufferList
[src]
impl Deref for BufferList
[src]
type Target = BufferListRef
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'de> Deserialize<'de> for BufferList
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Drop for BufferList
[src]
impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstBufferList,
num: usize
) -> Vec<Self>
[src]
ptr: *const *mut GstBufferList,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstBufferList,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstBufferList,
_: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstBufferList,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstBufferList,
_: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>
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]
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]
unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
[src]
impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList
[src]
unsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>
[src]
impl FromGlibPtrFull<*const GstBufferList> for BufferList
[src]
unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
[src]
impl FromGlibPtrFull<*mut GstBufferList> for BufferList
[src]
unsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self
[src]
impl FromGlibPtrNone<*const GstBufferList> for BufferList
[src]
unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
[src]
impl FromGlibPtrNone<*mut GstBufferList> for BufferList
[src]
unsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self
[src]
impl<'a> FromValueOptional<'a> for BufferList
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[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]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
impl StaticType for BufferList
[src]
fn static_type() -> Type
[src]
impl Sync 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]
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]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>
[src]
fn to_glib_full(&self) -> *const GstBufferList
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[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_full(&self) -> *mut GstBufferList
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GPtrArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GPtrArray
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,