pub enum UciCommand {
Uci,
Debug(bool),
IsReady,
SetOption(RawOption),
UciNewGame,
Pos(Game),
Go(SearchControls),
Stop,
PonderHit,
Quit,
}
Expand description
UciCommands commands from an external program sent to this chess engine.
Variants§
Uci
Debug(bool)
IsReady
SetOption(RawOption)
UciNewGame
Pos(Game)
Go(SearchControls)
Stop
PonderHit
Quit
Implementations§
Source§impl UciCommand
impl UciCommand
Sourcepub fn parse_command(input_str: &str) -> Result<Self>
pub fn parse_command(input_str: &str) -> Result<Self>
Parse a single input line into a UciCommand if possible.
Trait Implementations§
Source§impl Clone for UciCommand
impl Clone for UciCommand
Source§fn clone(&self) -> UciCommand
fn clone(&self) -> UciCommand
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 Debug for UciCommand
impl Debug for UciCommand
Source§impl FromStr for UciCommand
impl FromStr for UciCommand
Source§impl PartialEq for UciCommand
impl PartialEq for UciCommand
impl Eq for UciCommand
impl StructuralPartialEq for UciCommand
Auto Trait Implementations§
impl Freeze for UciCommand
impl RefUnwindSafe for UciCommand
impl Send for UciCommand
impl Sync for UciCommand
impl Unpin for UciCommand
impl UnwindSafe for UciCommand
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