[−][src]Enum vampirc_uci::uci::UciOptionConfig
Represents a UCI option definition.
Variants
Check
The option of type check
(a boolean).
Fields of Check
Spin
The option of type spin
(a signed integer).
Fields of Spin
Combo
The option of type combo
(a list of strings).
Fields of Combo
Button
The option of type button
(an action).
Fields of Button
name: String
The name of the option.
String
The option of type string
(a string, unsurprisingly).
Fields of String
Methods
impl UciOptionConfig
[src]
pub fn get_name(&self) -> &str
[src]
Returns the name of the option.
pub fn get_type_str(&self) -> &'static str
[src]
Returns the type string of the option (ie. "check"
, "spin"
...)
Trait Implementations
impl Serializable for UciOptionConfig
[src]
fn serialize(&self) -> String
[src]
Serializes this option config into a full UCI message string.
Examples
use vampirc_uci::{UciMessage, UciOptionConfig, Serializable}; let m = UciMessage::Option(UciOptionConfig::Check { name: String::from("Nullmove"), default: Some(true) }); assert_eq!(m.serialize(), "option name Nullmove type check default true");
impl Clone for UciOptionConfig
[src]
fn clone(&self) -> UciOptionConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<UciOptionConfig> for UciOptionConfig
[src]
fn eq(&self, other: &UciOptionConfig) -> bool
[src]
fn ne(&self, other: &UciOptionConfig) -> bool
[src]
impl Eq for UciOptionConfig
[src]
impl Hash for UciOptionConfig
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for UciOptionConfig
[src]
impl Display for UciOptionConfig
[src]
Auto Trait Implementations
impl Send for UciOptionConfig
impl Sync for UciOptionConfig
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,