[][src]Struct gstreamer::memory::MemoryRef

#[repr(C)]
pub struct MemoryRef(_);

Methods

impl MemoryRef[src]

pub fn get_allocator(&self) -> Option<Allocator>[src]

pub fn get_parent(&self) -> Option<&MemoryRef>[src]

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

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

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

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

pub fn get_flags(&self) -> MemoryFlags[src]

pub fn copy_part(&self, offset: isize, size: Option<usize>) -> Memory[src]

pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>[src]

pub fn is_type(&self, mem_type: &str) -> bool[src]

pub fn map_readable(&self) -> Option<MemoryMap<Readable>>[src]

pub fn map_writable(&mut self) -> Option<MemoryMap<Writable>>[src]

pub fn share(&self, offset: isize, size: Option<usize>) -> Memory[src]

pub fn resize(&mut self, offset: isize, size: usize)[src]

Trait Implementations

impl MiniObject for MemoryRef[src]

type GstType = GstMemory

unsafe fn as_ptr(&self) -> *const Self::GstType[src]

unsafe fn as_mut_ptr(&self) -> *mut Self::GstType[src]

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

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

fn copy(&self) -> GstRc<Self>[src]

impl AsRef<MemoryRef> for Memory[src]

impl Sync for MemoryRef[src]

impl ToOwned for MemoryRef[src]

type Owned = Memory

The resulting type after obtaining ownership.

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 MemoryRef[src]

impl Debug for MemoryRef[src]

impl Borrow<MemoryRef> for Memory[src]

impl StaticType for MemoryRef[src]

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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.

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.

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

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

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