Struct gstreamer::bufferlist::BufferListRef
source · #[repr(transparent)]pub struct BufferListRef(GstBufferList);
Tuple Fields§
§0: GstBufferList
Implementations§
source§impl BufferListRef
impl BufferListRef
pub fn as_ptr(&self) -> *const GstBufferList
pub 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
pub fn ptr_eq(this: &BufferListRef, other: &BufferListRef) -> bool
source§impl 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>
pub fn len(&self) -> usize
pub fn calculate_size(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn iter_owned(&self) -> IterOwned<'_> ⓘ
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§
source§impl AsRef<BufferListRef> for BufferList
impl AsRef<BufferListRef> for BufferList
source§fn as_ref(&self) -> &BufferListRef
fn as_ref(&self) -> &BufferListRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<BufferListRef> for BufferList
impl Borrow<BufferListRef> for BufferList
source§fn borrow(&self) -> &BufferListRef
fn borrow(&self) -> &BufferListRef
Immutably borrows from an owned value. Read more
source§impl Debug for BufferListRef
impl Debug for BufferListRef
source§impl Extend<Buffer> for BufferListRef
impl Extend<Buffer> for BufferListRef
source§fn 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
source§fn 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.
source§fn 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
source§impl<'a> FromValue<'a> for &'a BufferListRef
impl<'a> FromValue<'a> for &'a BufferListRef
source§type Checker = GenericValueTypeOrNoneChecker<&'a BufferListRef>
type Checker = GenericValueTypeOrNoneChecker<&'a BufferListRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for BufferListRef
impl GlibPtrDefault for BufferListRef
type GlibType = *mut GstBufferList
source§impl<'a> IntoIterator for &'a BufferListRef
impl<'a> IntoIterator for &'a BufferListRef
source§impl StaticType for BufferListRef
impl StaticType for BufferListRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for BufferListRef
impl ToOwned for BufferListRef
source§type Owned = BufferList
type Owned = BufferList
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> BufferList
fn to_owned(&self) -> BufferList
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for BufferListRef
impl Sync for BufferListRef
Auto Trait Implementations§
impl Freeze for BufferListRef
impl RefUnwindSafe for BufferListRef
impl !Unpin for BufferListRef
impl UnwindSafe for BufferListRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.