Struct gstreamer::bufferlist::BufferList
source · [−]#[repr(transparent)]pub struct BufferList { /* private fields */ }
Implementations
sourceimpl BufferList
impl BufferList
pub unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
pub unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstBufferList)
pub fn make_mut(&mut self) -> &mut BufferListRef
pub fn get_mut(&mut self) -> Option<&mut BufferListRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
pub unsafe fn into_ptr(self) -> *mut GstBufferList
Methods from Deref<Target = BufferListRef>
pub unsafe fn as_ptr(&self) -> *const GstBufferList
pub unsafe fn as_mut_ptr(&self) -> *mut GstBufferList
pub fn copy(&self) -> BufferList
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn copy_deep(&self) -> BufferList
pub fn get(&self, idx: u32) -> Option<&BufferRef>
pub fn get_owned(&self, idx: u32) -> Option<Buffer>
pub fn len(&self) -> usize
pub fn calculate_size(&self) -> usize
v1_14
only.pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = &'a BufferRef;
pub fn iter_owned(&self) -> IterOwned<'_>ⓘNotable traits for IterOwned<'a>impl<'a> Iterator for IterOwned<'a> type Item = Buffer;
pub fn foreach<F: FnMut(&Buffer, u32) -> ControlFlow<(), ()>>(
&self,
func: F
) -> bool
Trait Implementations
sourceimpl AsRef<BufferListRef> for BufferList
impl AsRef<BufferListRef> for BufferList
sourcefn as_ref(&self) -> &BufferListRef
fn as_ref(&self) -> &BufferListRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<BufferListRef> for BufferList
impl Borrow<BufferListRef> for BufferList
sourcefn borrow(&self) -> &BufferListRef
fn borrow(&self) -> &BufferListRef
Immutably borrows from an owned value. Read more
sourceimpl Clone for BufferList
impl Clone for BufferList
sourceimpl Debug for BufferList
impl Debug for BufferList
sourceimpl Default for BufferList
impl Default for BufferList
sourceimpl Deref for BufferList
impl Deref for BufferList
type Target = BufferListRef
type Target = BufferListRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for BufferList
impl<'de> Deserialize<'de> for BufferList
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Drop for BufferList
impl Drop for BufferList
sourceimpl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
impl FromGlibContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstBufferList,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstBufferList,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstBufferList,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
impl FromGlibContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstBufferList,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *const *mut GstBufferList> for BufferList
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstBufferList) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(_: *const *mut GstBufferList) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(_: *const *mut GstBufferList) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
impl FromGlibPtrArrayContainerAsVec<*mut GstBufferList, *mut *mut GstBufferList> for BufferList
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstBufferList) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstBufferList> for BufferList
impl FromGlibPtrBorrow<*const GstBufferList> for BufferList
sourceunsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstBufferList) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrBorrow<*mut GstBufferList> for BufferList
impl FromGlibPtrBorrow<*mut GstBufferList> for BufferList
sourceunsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstBufferList) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrFull<*const GstBufferList> for BufferList
impl FromGlibPtrFull<*const GstBufferList> for BufferList
sourceunsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
unsafe fn from_glib_full(ptr: *const GstBufferList) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstBufferList> for BufferList
impl FromGlibPtrFull<*mut GstBufferList> for BufferList
sourceunsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self
unsafe fn from_glib_full(ptr: *mut GstBufferList) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstBufferList> for BufferList
impl FromGlibPtrNone<*const GstBufferList> for BufferList
sourceunsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
unsafe fn from_glib_none(ptr: *const GstBufferList) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstBufferList> for BufferList
impl FromGlibPtrNone<*mut GstBufferList> for BufferList
sourceunsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self
unsafe fn from_glib_none(ptr: *mut GstBufferList) -> Self
Safety Read more
sourceimpl FromIterator<Buffer> for BufferList
impl FromIterator<Buffer> for BufferList
sourcefn from_iter<T: IntoIterator<Item = Buffer>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Buffer>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl<'a> FromValue<'a> for BufferList
impl<'a> FromValue<'a> for BufferList
type Checker = GenericValueTypeOrNoneChecker<BufferList>
type Checker = GenericValueTypeOrNoneChecker<BufferList>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<'a> FromValue<'a> for &'a BufferList
impl<'a> FromValue<'a> for &'a BufferList
type Checker = GenericValueTypeOrNoneChecker<&'a BufferList>
type Checker = GenericValueTypeOrNoneChecker<&'a BufferList>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl GlibPtrDefault for BufferList
impl GlibPtrDefault for BufferList
type GlibType = *mut GstBufferList
sourceimpl IsMiniObject for BufferList
impl IsMiniObject for BufferList
type RefType = BufferListRef
type FfiType = GstBufferList
sourceimpl Serialize for BufferList
impl Serialize for BufferList
sourceimpl StaticType for BufferList
impl StaticType for BufferList
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstBufferList> for BufferList
type Storage = (Vec<Stash<'a, *mut GstBufferList, BufferList>, Global>, Option<Vec<*mut GstBufferList, Global>>)
fn to_glib_none_from_slice(
t: &'a [BufferList]
) -> (*const *mut GstBufferList, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [BufferList]
) -> (*const *mut GstBufferList, Self::Storage)
fn to_glib_full_from_slice(_: &[BufferList]) -> *const *mut GstBufferList
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstBufferList> for BufferList
type Storage = (Vec<Stash<'a, *mut GstBufferList, BufferList>, Global>, Option<Vec<*mut GstBufferList, Global>>)
fn to_glib_none_from_slice(
t: &'a [BufferList]
) -> (*mut *mut GstBufferList, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [BufferList]
) -> (*mut *mut GstBufferList, Self::Storage)
fn to_glib_full_from_slice(t: &[BufferList]) -> *mut *mut GstBufferList
sourceimpl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList
impl<'a> ToGlibPtr<'a, *const GstBufferList> for BufferList
type Storage = &'a BufferList
sourcefn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstBufferList, Self>
Transfer: none. Read more
sourcefn to_glib_full(&self) -> *const GstBufferList
fn to_glib_full(&self) -> *const GstBufferList
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtr<'a, *mut GstBufferList> for BufferList
impl<'a> ToGlibPtr<'a, *mut GstBufferList> for BufferList
type Storage = &'a BufferList
sourcefn to_glib_none(&'a self) -> Stash<'a, *mut GstBufferList, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstBufferList, Self>
Transfer: none. Read more
sourcefn to_glib_full(&self) -> *mut GstBufferList
fn to_glib_full(&self) -> *mut GstBufferList
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList
impl<'a> ToGlibPtrMut<'a, *mut GstBufferList> for BufferList
type Storage = &'a mut BufferList
sourcefn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstBufferList, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstBufferList, Self>
Transfer: none. Read more
sourceimpl ToValue for BufferList
impl ToValue for BufferList
sourceimpl ToValueOptional for BufferList
impl ToValueOptional for BufferList
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option
to a Value
.
sourceimpl ValueType for BufferList
impl ValueType for BufferList
type Type = BufferList
type Type = BufferList
Type to get the Type
from. Read more
impl Send for BufferList
impl Sync for BufferList
impl ValueTypeOptional for BufferList
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.