[−][src]Enum vampirc_uci::uci::UciOptionConfig
Represents a UCI option definition.
Variants
The option of type check
(a boolean).
Fields of Check
The option of type spin
(a signed integer).
Fields of Spin
The option of type combo
(a list of strings).
Fields of Combo
The option of type button
(an action).
Fields of Button
name: String
The name of the option.
The option of type string
(a string, unsurprisingly).
Fields of String
Implementations
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 Clone for UciOptionConfig
[src]
fn clone(&self) -> UciOptionConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UciOptionConfig
[src]
impl Display for UciOptionConfig
[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,
impl PartialEq<UciOptionConfig> for UciOptionConfig
[src]
fn eq(&self, other: &UciOptionConfig) -> bool
[src]
fn ne(&self, other: &UciOptionConfig) -> bool
[src]
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 StructuralEq for UciOptionConfig
[src]
impl StructuralPartialEq for UciOptionConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for UciOptionConfig
impl Send for UciOptionConfig
impl Sync for UciOptionConfig
impl Unpin for UciOptionConfig
impl UnwindSafe for UciOptionConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,