pub enum UciOptionType<INT = i32> {
Check {
default: bool,
},
Spin {
default: INT,
min: INT,
max: INT,
},
Combo {
default: String,
vars: Vec<String>,
},
Button,
String {
default: String,
},
}
Expand description
Represents the type of UCI-compatible options your engine can expose to the GUI.
Variants§
Check
check
A checkbox that can either be true
or false
.
Spin
spin
A spin wheel that can be an integer in a certain range.
Combo
combo
A combo box that can have different predefined strings as a value.
Button
button
A button that can be pressed to send a command to the engine.
String
string
A text field that has a string as a value
An empty string has the value <empty>
Trait Implementations§
Source§impl<INT: Clone> Clone for UciOptionType<INT>
impl<INT: Clone> Clone for UciOptionType<INT>
Source§fn clone(&self) -> UciOptionType<INT>
fn clone(&self) -> UciOptionType<INT>
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<INT: Debug> Debug for UciOptionType<INT>
impl<INT: Debug> Debug for UciOptionType<INT>
Source§impl<T: Display> Display for UciOptionType<T>
impl<T: Display> Display for UciOptionType<T>
Source§impl<INT: Hash> Hash for UciOptionType<INT>
impl<INT: Hash> Hash for UciOptionType<INT>
Source§impl<INT: PartialEq> PartialEq for UciOptionType<INT>
impl<INT: PartialEq> PartialEq for UciOptionType<INT>
impl<INT: Eq> Eq for UciOptionType<INT>
impl<INT> StructuralPartialEq for UciOptionType<INT>
Auto Trait Implementations§
impl<INT> Freeze for UciOptionType<INT>where
INT: Freeze,
impl<INT> RefUnwindSafe for UciOptionType<INT>where
INT: RefUnwindSafe,
impl<INT> Send for UciOptionType<INT>where
INT: Send,
impl<INT> Sync for UciOptionType<INT>where
INT: Sync,
impl<INT> Unpin for UciOptionType<INT>where
INT: Unpin,
impl<INT> UnwindSafe for UciOptionType<INT>where
INT: 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