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