pub enum MoveError {
Invalid,
Illegal,
Ambiguous,
}
Expand description
Errors that can occur when trying to move a piece
§Variants
Invalid
: The move is invalidIllegal
: The move is illegalAmbiguous
: The move is ambiguous
Variants§
Trait Implementations§
impl StructuralPartialEq for MoveError
Auto Trait Implementations§
impl Freeze for MoveError
impl RefUnwindSafe for MoveError
impl Send for MoveError
impl Sync for MoveError
impl Unpin for MoveError
impl UnwindSafe for MoveError
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