Struct render_cerke_board::Field [−][src]
pub struct Field { /* fields omitted */ }
Implementations
pub fn place_from_hop1zuo1(
&mut self,
coord: Coord,
side: Side,
color: Color,
profession: Profession
) -> Result<(), OperationError>
pub fn place_from_hop1zuo1(
&mut self,
coord: Coord,
side: Side,
color: Color,
profession: Profession
) -> Result<(), OperationError>
Errors
Will return Err
if either:
coord
is already occupied- the
side
’s hop1zuo1 does not contain the piece specified by thecolor
andprofession
Errors
Will return Err
if no piece is floating
Errors
Will return Err
if to
is already occupied.
Errors
Will return Err
if either :
- the
from
is an empty square - the
to
is an empty square self.floating
is already occupied