pub enum Field {
Show 19 variants
Event,
Site,
Date,
Round,
Black,
White,
Result,
BlackElo,
WhiteElo,
BlackRatingDiff,
WhiteRatingDiff,
BlackTitle,
WhiteTitle,
ECO,
Opening,
TimeControl,
Termination,
TotalPlyCount,
ScidFlags,
}Expand description
Represents the various fields of a chess game that can be used for filtering.
This enumeration lists the different game fields that can be involved in filtering expressions. Each variant corresponds to a specific field in a game, such as player names, ratings, or the opening played.
The Field enumeration can be used to build complex filter expressions, allowing the selection of games based on the values of these fields.
Variants§
Event
The name of the event or tournament where the game was played.
Site
The location where the game was played.
Date
The date the game was played.
Round
The round number in a tournament.
Black
The name of the player playing with the black pieces.
White
The name of the player playing with the white pieces.
Result
The result of the game (e.g., 1-0, 0-1, or 1/2-1/2).
BlackElo
The Elo rating of the black player.
WhiteElo
The Elo rating of the white player.
BlackRatingDiff
The rating difference of the black player after the game.
WhiteRatingDiff
The rating difference of the white player after the game.
BlackTitle
The title held by the black player (e.g., GM, IM, FM).
WhiteTitle
The title held by the white player (e.g., GM, IM, FM).
ECO
The Encyclopedia of Chess Openings code for the game’s opening.
Opening
The name of the opening played in the game.
TimeControl
The time control used for the game.
Termination
The manner in which the game was terminated (e.g., checkmate, draw by agreement).
TotalPlyCount
Total number of plies in the game.
ScidFlags
Game flags added by the SCID software (DWBMENPTKQ!?U123456)
Implementations§
Trait Implementations§
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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