Struct gstreamer::bufferlist::BufferListRef

source ·
#[repr(transparent)]
pub struct BufferListRef(GstBufferList);

Tuple Fields§

§0: GstBufferList

Implementations§

source§

impl BufferListRef

source

pub fn as_ptr(&self) -> *const GstBufferList

source

pub fn as_mut_ptr(&self) -> *mut GstBufferList

source

pub unsafe fn from_ptr<'a>(ptr: *const GstBufferList) -> &'a Self

source

pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstBufferList) -> &'a mut Self

source

pub fn copy(&self) -> BufferList

source

pub fn upcast_ref(&self) -> &MiniObjectRef

source

pub fn upcast_mut(&mut self) -> &mut MiniObjectRef

source

pub fn ptr_eq(this: &BufferListRef, other: &BufferListRef) -> bool

source§

impl BufferListRef

source

pub fn insert(&mut self, idx: i32, buffer: Buffer)

source

pub fn add(&mut self, buffer: Buffer)

source

pub fn copy_deep(&self) -> BufferList

source

pub fn remove(&mut self, idx: u32, len: u32)

source

pub fn get(&self, idx: u32) -> Option<&BufferRef>

source

pub fn get_owned(&self, idx: u32) -> Option<Buffer>

source

pub fn get_mut(&mut self, idx: u32) -> Option<&mut BufferRef>

source

pub fn len(&self) -> usize

source

pub fn calculate_size(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn iter(&self) -> Iter<'_>

source

pub fn iter_owned(&self) -> IterOwned<'_>

source

pub fn foreach<F: FnMut(&Buffer, u32) -> ControlFlow<(), ()>>( &self, func: F, ) -> bool

source

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

source§

fn as_ref(&self) -> &BufferListRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<BufferListRef> for BufferList

source§

fn borrow(&self) -> &BufferListRef

Immutably borrows from an owned value. Read more
source§

impl Debug for BufferListRef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<Buffer> for BufferListRef

source§

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)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

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

source§

type Checker = GenericValueTypeOrNoneChecker<&'a BufferListRef>

Value type checker.
source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
source§

impl GlibPtrDefault for BufferListRef

source§

impl<'a> IntoIterator for &'a BufferListRef

source§

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?
source§

type Item = &'a BufferRef

The type of the elements being iterated over.
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl StaticType for BufferListRef

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl ToOwned for BufferListRef

source§

type Owned = BufferList

The resulting type after obtaining ownership.
source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl Send for BufferListRef

source§

impl Sync for BufferListRef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.