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