Enum usi::OptionKind
source · [−]pub enum OptionKind {
Check {
default: Option<bool>,
},
Spin {
default: Option<i32>,
min: Option<i32>,
max: Option<i32>,
},
Combo {
default: Option<String>,
vars: Vec<String>,
},
Button {
default: Option<String>,
},
String {
default: Option<String>,
},
Filename {
default: Option<String>,
},
}
Expand description
Represents a kind of “option” command value.
Variants
Check
Spin
Combo
Button
String
Filename
Trait Implementations
sourceimpl Clone for OptionKind
impl Clone for OptionKind
sourcefn clone(&self) -> OptionKind
fn clone(&self) -> OptionKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptionKind
impl Debug for OptionKind
sourceimpl Hash for OptionKind
impl Hash for OptionKind
sourceimpl PartialEq<OptionKind> for OptionKind
impl PartialEq<OptionKind> for OptionKind
sourcefn eq(&self, other: &OptionKind) -> bool
fn eq(&self, other: &OptionKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OptionKind) -> bool
fn ne(&self, other: &OptionKind) -> bool
This method tests for !=
.
impl Eq for OptionKind
impl StructuralEq for OptionKind
impl StructuralPartialEq for OptionKind
Auto Trait Implementations
impl RefUnwindSafe for OptionKind
impl Send for OptionKind
impl Sync for OptionKind
impl Unpin for OptionKind
impl UnwindSafe for OptionKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more