Struct render_cerke_board::Field [−][src]
pub struct Field { /* fields omitted */ }
Implementations
impl Field
[src]
impl Field
[src]#[must_use]pub fn to_logical(&self) -> LogicalField
[src]
#[must_use]
pub fn to_logical(&self) -> LogicalFieldimpl Field
[src]
impl Field
[src]pub fn delete_focus(&mut self)
[src]
pub fn place_from_hop1zuo1(
&mut self,
coord: Coord,
side: Side,
color: Color,
profession: Profession
) -> Result<(), OperationError>
[src]
&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
pub fn move_to_opponent_hop1zuo1(
&mut self,
coord: Coord
) -> Result<(), OperationError>
[src]
&mut self,
coord: Coord
) -> Result<(), OperationError>
pub fn move_to_empty_square(
&mut self,
to: Coord,
from: Coord
) -> Result<(), OperationError>
[src]
&mut self,
to: Coord,
from: Coord
) -> Result<(), OperationError>
pub fn relocate_stepping(&mut self, to: Coord) -> Result<(), OperationError>
[src]
Errors
Will return Err
if no piece is floating
pub fn descend_from_stepping(&mut self, to: Coord) -> Result<(), OperationError>
[src]
Errors
Will return Err
if to
is already occupied.
pub fn step_on_occupied(
&mut self,
to: Coord,
from: Coord
) -> Result<(), OperationError>
[src]
&mut self,
to: Coord,
from: Coord
) -> Result<(), OperationError>
Errors
Will return Err
if either :
- the
from
is an empty square - the
to
is an empty square self.floating
is already occupied
#[must_use]pub fn render(&self, down_side: Side) -> RgbImage
[src]
#[must_use]
pub fn render(&self, down_side: Side) -> RgbImage#[must_use]pub fn new(piece_dimension: u32, padding: u32) -> Field
[src]
#[must_use]
pub fn new(piece_dimension: u32, padding: u32) -> FieldTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Field
impl RefUnwindSafe for Field
impl UnwindSafe for Field
impl UnwindSafe for Field