#[repr(transparent)]pub struct PodIdRef<T: PodIdType = u32> { /* private fields */ }
Trait Implementations§
source§impl<T: PodIdType> From<spa_pod_id> for PodIdRef<T>
impl<T: PodIdType> From<spa_pod_id> for PodIdRef<T>
source§fn from(value: spa_pod_id) -> Self
fn from(value: spa_pod_id) -> Self
Converts to this type from the input type.
source§impl<T: PodIdType> RawWrapper for PodIdRef<T>
impl<T: PodIdType> RawWrapper for PodIdRef<T>
§type CType = spa_pod_id
type CType = spa_pod_id
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<T> RefUnwindSafe for PodIdRef<T>where T: RefUnwindSafe,
impl<T> Send for PodIdRef<T>where T: Send,
impl<T> Sync for PodIdRef<T>where T: Sync,
impl<T> Unpin for PodIdRef<T>where T: Unpin,
impl<T> UnwindSafe for PodIdRef<T>where T: UnwindSafe,
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