Struct pipewire_wrapper::spa::type_::FractionRef
source · #[repr(transparent)]pub struct FractionRef { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for FractionRef
impl Clone for FractionRef
source§fn clone(&self) -> FractionRef
fn clone(&self) -> FractionRef
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 FractionRef
impl Debug for FractionRef
source§impl From<FractionRef> for spa_fraction
impl From<FractionRef> for spa_fraction
source§fn from(value: FractionRef) -> Self
fn from(value: FractionRef) -> Self
Converts to this type from the input type.
source§impl From<spa_fraction> for FractionRef
impl From<spa_fraction> for FractionRef
source§fn from(value: spa_fraction) -> Self
fn from(value: spa_fraction) -> Self
Converts to this type from the input type.
source§impl RawWrapper for FractionRef
impl RawWrapper for FractionRef
§type CType = spa_fraction
type CType = spa_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 FractionRef
Auto Trait Implementations§
impl RefUnwindSafe for FractionRef
impl Send for FractionRef
impl Sync for FractionRef
impl Unpin for FractionRef
impl UnwindSafe for FractionRef
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