pub enum FenComponent {
Board,
Active,
CastlingRights,
Enpassant,
HalfMoveCount,
MoveCount,
}
Expand description
Represents the individual components which make up a board position encoded as a FEN string.
Variants§
Trait Implementations§
Source§impl Clone for FenComponent
impl Clone for FenComponent
Source§fn clone(&self) -> FenComponent
fn clone(&self) -> FenComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FenComponent
impl Debug for FenComponent
Source§impl Hash for FenComponent
impl Hash for FenComponent
Source§impl Ord for FenComponent
impl Ord for FenComponent
Source§fn cmp(&self, other: &FenComponent) -> Ordering
fn cmp(&self, other: &FenComponent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FenComponent
impl PartialEq for FenComponent
Source§impl PartialOrd for FenComponent
impl PartialOrd for FenComponent
impl Copy for FenComponent
impl Eq for FenComponent
impl StructuralPartialEq for FenComponent
Auto Trait Implementations§
impl Freeze for FenComponent
impl RefUnwindSafe for FenComponent
impl Send for FenComponent
impl Sync for FenComponent
impl Unpin for FenComponent
impl UnwindSafe for FenComponent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more