pub struct PodProp(/* private fields */);
Expand description
A transparent wrapper around a spa_sys::spa_pod_prop
.
Implementations§
source§impl PodProp
impl PodProp
sourcepub unsafe fn from_raw(prop: *const spa_pod_prop) -> &'static Self
pub unsafe fn from_raw(prop: *const spa_pod_prop) -> &'static Self
§Safety
The provided pointer must point to a valid, well-aligned spa_sys::spa_pod_prop
.
While this struct doesn’t represent a full pod, all restrictions from Pod::from_raw
also apply
to this struct and the contained value
pod.
sourcepub unsafe fn from_raw_mut(prop: *mut spa_pod_prop) -> &'static mut Self
pub unsafe fn from_raw_mut(prop: *mut spa_pod_prop) -> &'static mut Self
§Safety
The provided pointer must point to a valid, well-aligned pod of type object.
While this struct doesn’t represent a full pod, all restrictions from Pod::from_raw
also apply
to this struct and the contained value
pod.
pub fn as_raw_ptr(&self) -> *mut spa_pod_prop
pub fn key(&self) -> Id
pub fn flags(&self) -> PodPropFlags
pub fn value(&self) -> &Pod
Auto Trait Implementations§
impl RefUnwindSafe for PodProp
impl Send for PodProp
impl Sync for PodProp
impl Unpin for PodProp
impl UnwindSafe for PodProp
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