Enum libspa::utils::ChoiceEnum
source · pub enum ChoiceEnum<T: CanonicalFixedSizedPod> {
None(T),
Range {
default: T,
min: T,
max: T,
},
Step {
default: T,
min: T,
max: T,
step: T,
},
Enum {
default: T,
alternatives: Vec<T>,
},
Flags {
default: T,
flags: Vec<T>,
},
}
Expand description
a choice in a pod.
Variants§
Trait Implementations§
source§impl<T: Clone + CanonicalFixedSizedPod> Clone for ChoiceEnum<T>
impl<T: Clone + CanonicalFixedSizedPod> Clone for ChoiceEnum<T>
source§fn clone(&self) -> ChoiceEnum<T>
fn clone(&self) -> ChoiceEnum<T>
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<T: Debug + CanonicalFixedSizedPod> Debug for ChoiceEnum<T>
impl<T: Debug + CanonicalFixedSizedPod> Debug for ChoiceEnum<T>
source§impl<T: PartialEq + CanonicalFixedSizedPod> PartialEq for ChoiceEnum<T>
impl<T: PartialEq + CanonicalFixedSizedPod> PartialEq for ChoiceEnum<T>
source§fn eq(&self, other: &ChoiceEnum<T>) -> bool
fn eq(&self, other: &ChoiceEnum<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq + CanonicalFixedSizedPod> Eq for ChoiceEnum<T>
impl<T: CanonicalFixedSizedPod> StructuralPartialEq for ChoiceEnum<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ChoiceEnum<T>where
T: RefUnwindSafe,
impl<T> Send for ChoiceEnum<T>where
T: Send,
impl<T> Sync for ChoiceEnum<T>where
T: Sync,
impl<T> Unpin for ChoiceEnum<T>where
T: Unpin,
impl<T> UnwindSafe for ChoiceEnum<T>where
T: UnwindSafe,
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