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