gstreamer::bufferlist

Struct BufferListRef

Source
pub struct BufferListRef(/* private fields */);

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: impl Into<Option<usize>>, buffer: Buffer)

Source

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

Source

pub fn copy_deep(&self) -> BufferList

Source

pub fn remove(&mut self, range: impl RangeBounds<usize>)

Source

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

Source

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

Source

pub fn get_mut(&mut self, idx: usize) -> 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, usize) -> ControlFlow<(), ()>>(&self, func: F)

Source

pub fn foreach_mut<F: FnMut(Buffer, usize) -> ControlFlow<Option<Buffer>, Option<Buffer>>>( &mut self, func: F, )

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 Serialize for BufferListRef

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. 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.