Struct shogi_kifu_converter::jkf::MoveMoveFormat
source · [−]pub struct MoveMoveFormat {
pub color: Color,
pub from: Option<PlaceFormat>,
pub to: PlaceFormat,
pub piece: Kind,
pub same: Option<bool>,
pub promote: Option<bool>,
pub capture: Option<Kind>,
pub relative: Option<Relative>,
}
Expand description
The type translated from IMoveMoveFormat
Fields
color: Color
手番
from: Option<PlaceFormat>
移動元
to: PlaceFormat
移動先
piece: Kind
駒種
same: Option<bool>
同
promote: Option<bool>
成
capture: Option<Kind>
駒取り
relative: Option<Relative>
相対位置・動作
Trait Implementations
sourceimpl Clone for MoveMoveFormat
impl Clone for MoveMoveFormat
sourcefn clone(&self) -> MoveMoveFormat
fn clone(&self) -> MoveMoveFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MoveMoveFormat
impl Debug for MoveMoveFormat
sourceimpl<'de> Deserialize<'de> for MoveMoveFormat
impl<'de> Deserialize<'de> for MoveMoveFormat
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MoveMoveFormat> for MoveMoveFormat
impl PartialEq<MoveMoveFormat> for MoveMoveFormat
sourcefn eq(&self, other: &MoveMoveFormat) -> bool
fn eq(&self, other: &MoveMoveFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MoveMoveFormat) -> bool
fn ne(&self, other: &MoveMoveFormat) -> bool
This method tests for !=
.
sourceimpl Serialize for MoveMoveFormat
impl Serialize for MoveMoveFormat
sourceimpl TryFrom<&MoveMoveFormat> for Move
impl TryFrom<&MoveMoveFormat> for Move
type Error = CoreConvertError
type Error = CoreConvertError
The type returned in the event of a conversion error.
sourcefn try_from(mmf: &MoveMoveFormat) -> Result<Self, Self::Error>
fn try_from(mmf: &MoveMoveFormat) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for MoveMoveFormat
impl Eq for MoveMoveFormat
impl StructuralEq for MoveMoveFormat
impl StructuralPartialEq for MoveMoveFormat
Auto Trait Implementations
impl RefUnwindSafe for MoveMoveFormat
impl Send for MoveMoveFormat
impl Sync for MoveMoveFormat
impl Unpin for MoveMoveFormat
impl UnwindSafe for MoveMoveFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more