[][src]Struct shakmaty::PositionError

pub struct PositionError<P> { /* fields omitted */ }

Error when trying to create a Position from an illegal Setup.

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
[src]

impl<P> Send for PositionError<P> where
    P: Send
[src]

impl<P> Sync for PositionError<P> where
    P: Sync
[src]

impl<P> Unpin for PositionError<P> where
    P: Unpin
[src]

impl<P> UnwindSafe for PositionError<P> where
    P: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.