Enum libspa::pod::ChoiceValue
source · pub enum ChoiceValue {
Bool(Choice<bool>),
Int(Choice<i32>),
Long(Choice<i64>),
Float(Choice<f32>),
Double(Choice<f64>),
Id(Choice<Id>),
Rectangle(Choice<Rectangle>),
Fraction(Choice<Fraction>),
Fd(Choice<Fd>),
}
Expand description
A typed choice.
Variants§
Bool(Choice<bool>)
Choice on boolean values.
Int(Choice<i32>)
Choice on 32 bits integer values.
Long(Choice<i64>)
Choice on 64 bits integer values.
Float(Choice<f32>)
Choice on 32 bits floating values.
Double(Choice<f64>)
Choice on 64 bits floating values.
Id(Choice<Id>)
Choice on id values.
Rectangle(Choice<Rectangle>)
Choice on rectangle values.
Fraction(Choice<Fraction>)
Choice on fraction values.
Fd(Choice<Fd>)
Choice on fd values.
Trait Implementations§
source§impl Clone for ChoiceValue
impl Clone for ChoiceValue
source§fn clone(&self) -> ChoiceValue
fn clone(&self) -> ChoiceValue
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 ChoiceValue
impl Debug for ChoiceValue
source§impl PartialEq for ChoiceValue
impl PartialEq for ChoiceValue
source§fn eq(&self, other: &ChoiceValue) -> bool
fn eq(&self, other: &ChoiceValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChoiceValue
Auto Trait Implementations§
impl RefUnwindSafe for ChoiceValue
impl Send for ChoiceValue
impl Sync for ChoiceValue
impl Unpin for ChoiceValue
impl UnwindSafe for ChoiceValue
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