[][src]Trait shakmaty::FromSetup

pub trait FromSetup: Sized {
    fn from_setup(setup: &dyn Setup) -> Result<Self, PositionError>;
}

Validate and set up an arbitrary position. All provided chess variants support this.

Required methods

fn from_setup(setup: &dyn Setup) -> Result<Self, PositionError>

Set up a position.

Errors

Returns PositionError if the setup is not legal.

Loading content...

Implementors

impl FromSetup for Chess[src]

impl FromSetup for Atomic[src]

impl FromSetup for Crazyhouse[src]

impl FromSetup for Giveaway[src]

impl FromSetup for Horde[src]

impl FromSetup for KingOfTheHill[src]

impl FromSetup for RacingKings[src]

impl FromSetup for ThreeCheck[src]

Loading content...