pub struct PodStruct(/* private fields */);
Expand description
A transparent wrapper around a spa_sys::spa_pod_struct
.
Implementations§
Source§impl PodStruct
impl PodStruct
Sourcepub unsafe fn from_raw(pod: *const spa_pod_struct) -> &'static Self
pub unsafe fn from_raw(pod: *const spa_pod_struct) -> &'static Self
§Safety
The provided pointer must point to a valid, well-aligned pod of type struct.
All restrictions from Pod::from_raw
also apply here.
Sourcepub unsafe fn from_raw_mut(pod: *mut spa_pod_struct) -> &'static mut Self
pub unsafe fn from_raw_mut(pod: *mut spa_pod_struct) -> &'static mut Self
§Safety
The provided pointer must point to a valid, well-aligned pod of type struct.
All restrictions from Pod::from_raw_mut
also apply here.
pub fn as_raw_ptr(&self) -> *mut spa_pod_struct
pub fn as_pod(&self) -> &Pod
pub fn fields(&self) -> PodStructIter<'_> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PodStruct
impl RefUnwindSafe for PodStruct
impl Send for PodStruct
impl Sync for PodStruct
impl Unpin for PodStruct
impl UnwindSafe for PodStruct
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