Struct gstreamer::bufferlist::BufferListRef
source · [−]#[repr(transparent)]pub struct BufferListRef(_);
Implementations
sourceimpl BufferListRef
impl BufferListRef
pub unsafe fn as_ptr(&self) -> *const GstBufferList
pub unsafe fn as_mut_ptr(&self) -> *mut GstBufferList
pub unsafe fn from_ptr<'a>(ptr: *const GstBufferList) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstBufferList) -> &'a mut Self
pub fn copy(&self) -> BufferList
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
sourceimpl BufferListRef
impl BufferListRef
pub fn insert(&mut self, idx: i32, buffer: Buffer)
pub fn add(&mut self, buffer: Buffer)
pub fn copy_deep(&self) -> BufferList
pub fn remove(&mut self, idx: u32, len: u32)
pub fn get(&self, idx: u32) -> Option<&BufferRef>
pub fn get_owned(&self, idx: u32) -> Option<Buffer>
pub fn get_mut(&mut self, idx: u32) -> Option<&mut BufferRef>
This is supported on crate feature
v1_14
only.pub fn len(&self) -> usize
pub fn calculate_size(&self) -> usize
This is supported on crate feature
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
pub fn foreach_mut<F: FnMut(Buffer, u32) -> ControlFlow<Option<Buffer>, Option<Buffer>>>(
&mut 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 Debug for BufferListRef
impl Debug for BufferListRef
sourceimpl Extend<Buffer> for BufferListRef
impl Extend<Buffer> for BufferListRef
sourcefn extend<T: IntoIterator<Item = Buffer>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Buffer>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<'a> FromValue<'a> for &'a BufferListRef
impl<'a> FromValue<'a> for &'a BufferListRef
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
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 BufferListRef
impl GlibPtrDefault for BufferListRef
type GlibType = *mut GstBufferList
sourceimpl<'a> IntoIterator for &'a BufferListRef
impl<'a> IntoIterator for &'a BufferListRef
sourceimpl Serialize for BufferListRef
impl Serialize for BufferListRef
sourceimpl StaticType for BufferListRef
impl StaticType for BufferListRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for BufferListRef
impl ToOwned for BufferListRef
type Owned = BufferList
type Owned = BufferList
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> BufferList
fn to_owned(&self) -> BufferList
Creates owned data from borrowed data, usually by cloning. Read more
sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for BufferListRef
impl Sync for BufferListRef
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.