[−][src]Struct gstreamer::memory::MemoryRef
Implementations
impl MemoryRef
[src]
pub unsafe fn as_ptr(&self) -> *const GstMemory
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstMemory
[src]
pub unsafe fn from_ptr<'a>(ptr: *const GstMemory) -> &'a Self
[src]
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstMemory) -> &'a mut Self
[src]
pub fn copy(&self) -> Memory
[src]
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) -> Result<MemoryMap<'_, Readable>, BoolError>
[src]
pub fn map_writable(&mut self) -> Result<MemoryMap<'_, Writable>, BoolError>
[src]
pub fn share(&self, offset: isize, size: Option<usize>) -> Memory
[src]
pub fn resize(&mut self, offset: isize, size: usize)
[src]
pub fn dump(&self, size: Option<usize>) -> Dump<'_>
[src]
Trait Implementations
impl AsRef<MemoryRef> for Memory
[src]
impl Borrow<MemoryRef> for Memory
[src]
impl Debug for MemoryRef
[src]
impl<'a> FromValueOptional<'a> for &'a MemoryRef
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
impl GlibPtrDefault for MemoryRef
[src]
impl Send for MemoryRef
[src]
impl StaticType for MemoryRef
[src]
fn static_type() -> Type
[src]
impl Sync for MemoryRef
[src]
impl ToOwned for MemoryRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,