Union pipewire_sys::pw_map_item
source · #[repr(C)]
pub union pw_map_item {
pub next: usize,
pub data: *mut c_void,
}
Expand description
\private An entry in the map. This is used internally only. Each element in the backing pw_array is a union pw_map_item. For real items, the data pointer points to the item. If an element has been removed, pw_map->free_list is the index of the most recently removed item. That item contains the index of the next removed item until item->next is SPA_ID_INVALID.
The free list is prepended only, the last item to be removed will be the first item to get re-used on the next insert.
Fields§
§next: usize
§data: *mut c_void
Trait Implementations§
source§impl Clone for pw_map_item
impl Clone for pw_map_item
source§fn clone(&self) -> pw_map_item
fn clone(&self) -> pw_map_item
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for pw_map_item
Auto Trait Implementations§
impl RefUnwindSafe for pw_map_item
impl !Send for pw_map_item
impl !Sync for pw_map_item
impl Unpin for pw_map_item
impl UnwindSafe for pw_map_item
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