[−][src]Struct render_cerke_board::Field
Implementations
impl Field
[src]
#[must_use]pub fn to_logical(&self) -> LogicalField
[src]
impl Field
[src]
pub fn delete_focus(&mut self)
[src]
pub fn 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 new() -> Field
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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,
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,