Struct pipewire_wrapper::spa::pod::PodFractionRef
source · #[repr(transparent)]pub struct PodFractionRef { /* private fields */ }
Implementations§
source§impl PodFractionRef
impl PodFractionRef
pub fn raw_value(&self) -> spa_fraction
Trait Implementations§
source§impl Clone for PodFractionRef
impl Clone for PodFractionRef
source§fn clone(&self) -> PodFractionRef
fn clone(&self) -> PodFractionRef
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 PodFractionRef
impl Debug for PodFractionRef
source§impl From<PodFractionRef> for spa_pod_fraction
impl From<PodFractionRef> for spa_pod_fraction
source§fn from(value: PodFractionRef) -> Self
fn from(value: PodFractionRef) -> Self
Converts to this type from the input type.
source§impl From<spa_pod_fraction> for PodFractionRef
impl From<spa_pod_fraction> for PodFractionRef
source§fn from(value: spa_pod_fraction) -> Self
fn from(value: spa_pod_fraction) -> Self
Converts to this type from the input type.
source§impl PodValue for PodFractionRef
impl PodValue for PodFractionRef
source§impl RawWrapper for PodFractionRef
impl RawWrapper for PodFractionRef
§type CType = spa_pod_fraction
type CType = spa_pod_fraction
External type
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
impl Copy for PodFractionRef
Auto Trait Implementations§
impl RefUnwindSafe for PodFractionRef
impl Send for PodFractionRef
impl Sync for PodFractionRef
impl Unpin for PodFractionRef
impl UnwindSafe for PodFractionRef
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