Struct shakmaty::PositionError [−][src]
Implementations
impl<P> PositionError<P>
[src]
pub fn ignore_invalid_castling_rights(self) -> Result<P, Self>
[src]
pub fn ignore_invalid_ep_square(self) -> Result<P, Self>
[src]
pub fn ignore_impossible_material(self) -> Result<P, Self>
[src]
Get the position, even if the material configuration cannot be reached with any sequence of legal moves. Note that other programs may not work with too much material.
pub fn kinds(&self) -> PositionErrorKinds
[src]
Trait Implementations
impl<P> Debug for PositionError<P>
[src]
impl<P> Display for PositionError<P>
[src]
impl<P> Error for PositionError<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for PositionError<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for PositionError<P> where
P: Send,
P: Send,
impl<P> Sync for PositionError<P> where
P: Sync,
P: Sync,
impl<P> Unpin for PositionError<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for PositionError<P> where
P: UnwindSafe,
P: UnwindSafe,
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,
pub 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> 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.
pub 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>,