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 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<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>
impl<T: Eq + CanonicalFixedSizedPod> Eq for ChoiceEnum<T>
impl<T: CanonicalFixedSizedPod> StructuralPartialEq for ChoiceEnum<T>
Auto Trait Implementations§
impl<T> Freeze for ChoiceEnum<T>where
T: Freeze,
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