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 duplicate 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
impl StructuralPartialEq for ChoiceValue
Auto Trait Implementations§
impl Freeze for ChoiceValue
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