Struct gstreamer::bufferlist::BufferListRef[][src]

#[repr(transparent)]
pub struct BufferListRef(_);

Implementations

impl BufferListRef[src]

pub unsafe fn as_ptr(&self) -> *const GstBufferList[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstBufferList[src]

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

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

pub fn copy(&self) -> BufferList[src]

impl BufferListRef[src]

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

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

pub fn copy_deep(&self) -> BufferList[src]

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

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

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

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

This is supported on crate feature v1_14 only.

pub fn len(&self) -> usize[src]

pub fn calculate_size(&self) -> usize[src]

This is supported on crate feature v1_14 only.

pub fn is_empty(&self) -> bool[src]

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

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = &'a BufferRef;
[src]

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

Notable traits for IterOwned<'a>

impl<'a> Iterator for IterOwned<'a> type Item = Buffer;
[src]

pub fn foreach<F: FnMut(&BufferRef, u32) -> bool>(&self, func: F) -> bool[src]

pub fn foreach_mut<F: FnMut(Buffer, u32) -> Result<Option<Buffer>, Option<Buffer>>>(
    &mut self,
    func: F
) -> bool
[src]

Trait Implementations

impl AsRef<BufferListRef> for BufferList[src]

fn as_ref(&self) -> &BufferListRef[src]

Performs the conversion.

impl Borrow<BufferListRef> for BufferList[src]

fn borrow(&self) -> &BufferListRef[src]

Immutably borrows from an owned value. Read more

impl Debug for BufferListRef[src]

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

Formats the value using the given formatter. Read more

impl<'a> FromValue<'a> for &'a BufferListRef[src]

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

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

Get the contained value from a Value. Read more

impl GlibPtrDefault for BufferListRef[src]

type GlibType = *mut GstBufferList

impl Serialize for BufferListRef[src]

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

Serialize this value into the given Serde serializer. Read more

impl StaticType for BufferListRef[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl ToOwned for BufferListRef[src]

type Owned = BufferList

The resulting type after obtaining ownership.

fn to_owned(&self) -> BufferList[src]

Creates owned data from borrowed data, usually by cloning. Read more

fn clone_into(&self, target: &mut Self::Owned)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl Send for BufferListRef[src]

impl Sync for BufferListRef[src]

Auto Trait Implementations

impl RefUnwindSafe for BufferListRef

impl Unpin for BufferListRef

impl UnwindSafe for BufferListRef

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.