[−][src]Struct bk2d_mode::origin::Origin
Methods
impl Origin
[src]
pub fn walk(&mut self, path: Path) -> Result<()>
[src]
pub fn run(&mut self, path: Path) -> Result<()>
[src]
pub fn attack(&mut self, path: Path) -> Result<()>
[src]
Trait Implementations
impl BK2D for Origin
[src]
fn add_player(&mut self, p: Player) -> Result<()>
[src]
fn current_player(&self) -> &String
[src]
fn next_player(&mut self) -> &String
[src]
fn is_start(&self) -> bool
[src]
type Error = Error
type Player = Player
type Action = Action
type ActionResult = ()
type Public = Public
type Options = Options
fn new(board: Board, options: Options) -> Origin
[src]
fn start(&mut self)
[src]
fn action(&mut self, action: Action) -> Result<()>
[src]
fn round(&self) -> u32
[src]
fn public_actions(&self, round: Option<u32>) -> &[Self::Public]
[src]
fn public_actions_from(&self, start: u64, end: Option<u64>) -> &[Self::Public]
[src]
fn win(&self) -> Option<&String>
[src]
Auto Trait Implementations
impl Unpin for Origin
impl Send for Origin
impl Sync for Origin
impl UnwindSafe for Origin
impl RefUnwindSafe for Origin
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,