Struct pipewire_wrapper::spa::pod::choice::ChoiceType
source · #[repr(transparent)]pub struct ChoiceType { /* private fields */ }
Implementations§
source§impl ChoiceType
impl ChoiceType
pub const NONE: ChoiceType = _
pub const RANGE: ChoiceType = _
pub const STEP: ChoiceType = _
pub const ENUM: ChoiceType = _
pub const FLAGS: ChoiceType = _
Trait Implementations§
source§impl Clone for ChoiceType
impl Clone for ChoiceType
source§fn clone(&self) -> ChoiceType
fn clone(&self) -> ChoiceType
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 moresource§impl Debug for ChoiceType
impl Debug for ChoiceType
source§impl From<ChoiceType> for spa_choice_type
impl From<ChoiceType> for spa_choice_type
source§fn from(value: ChoiceType) -> Self
fn from(value: ChoiceType) -> Self
Converts to this type from the input type.
source§impl From<u32> for ChoiceType
impl From<u32> for ChoiceType
source§fn from(value: spa_choice_type) -> Self
fn from(value: spa_choice_type) -> Self
Converts to this type from the input type.
source§impl PartialEq<ChoiceType> for ChoiceType
impl PartialEq<ChoiceType> for ChoiceType
source§fn eq(&self, other: &ChoiceType) -> bool
fn eq(&self, other: &ChoiceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RawWrapper for ChoiceType
impl RawWrapper for ChoiceType
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
impl Copy for ChoiceType
impl Eq for ChoiceType
impl StructuralEq for ChoiceType
impl StructuralPartialEq for ChoiceType
Auto Trait Implementations§
impl RefUnwindSafe for ChoiceType
impl Send for ChoiceType
impl Sync for ChoiceType
impl Unpin for ChoiceType
impl UnwindSafe for ChoiceType
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