Struct gstreamer::AllocationParams
source · pub struct AllocationParams(/* private fields */);
Expand description
Parameters to control the allocation of memory
Implementations§
source§impl AllocationParams
impl AllocationParams
pub fn flags(&self) -> MemoryFlags
pub fn align(&self) -> usize
pub fn prefix(&self) -> usize
pub fn padding(&self) -> usize
sourcepub fn new(
flags: MemoryFlags,
align: usize,
prefix: usize,
padding: usize,
) -> Self
pub fn new( flags: MemoryFlags, align: usize, prefix: usize, padding: usize, ) -> Self
Create a new AllocationParams
on the heap. This function is for
use in GStreamer language bindings. In your own code, you can just
declare a AllocationParams
on the stack or in a struct, and
call [init()
][Self::init()] to initialize it.
You do not need to call [init()
][Self::init()] on the instance
returned by this function.
§Returns
a new AllocationParams
pub fn as_ptr(&self) -> *const GstAllocationParams
Trait Implementations§
source§impl Clone for AllocationParams
impl Clone for AllocationParams
source§fn clone(&self) -> AllocationParams
fn clone(&self) -> AllocationParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllocationParams
impl Debug for AllocationParams
source§impl Default for AllocationParams
impl Default for AllocationParams
source§impl From<GstAllocationParams> for AllocationParams
impl From<GstAllocationParams> for AllocationParams
source§fn from(params: GstAllocationParams) -> Self
fn from(params: GstAllocationParams) -> Self
Converts to this type from the input type.
source§impl FromGlib<GstAllocationParams> for AllocationParams
impl FromGlib<GstAllocationParams> for AllocationParams
unsafe fn from_glib(value: GstAllocationParams) -> Self
impl Send for AllocationParams
impl Sync for AllocationParams
Auto Trait Implementations§
impl Freeze for AllocationParams
impl RefUnwindSafe for AllocationParams
impl Unpin for AllocationParams
impl UnwindSafe for AllocationParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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