pub enum CommentReason {
Prose,
InstructionalNullMove,
BacktrackedMove,
NoLegalMove,
UnparsedTail,
ExactPly,
}Expand description
Why a nonblank source line was retained as a comment.
Variants§
Prose
The line did not begin with an explicit move number.
InstructionalNullMove
The line uses -- as an instructional placeholder for an irrelevant move.
BacktrackedMove
The line’s explicit move number precedes the current mainline position.
NoLegalMove
No legal move could be read at the current position.
UnparsedTail
Legal moves were followed by text that could not be parsed as moves.
ExactPly
The line explicitly attaches a comment to an exact mainline ply.
Trait Implementations§
Source§impl Clone for CommentReason
impl Clone for CommentReason
impl Copy for CommentReason
Source§impl Debug for CommentReason
impl Debug for CommentReason
impl Eq for CommentReason
Source§impl PartialEq for CommentReason
impl PartialEq for CommentReason
impl StructuralPartialEq for CommentReason
Auto Trait Implementations§
impl Freeze for CommentReason
impl RefUnwindSafe for CommentReason
impl Send for CommentReason
impl Sync for CommentReason
impl Unpin for CommentReason
impl UnsafeUnpin for CommentReason
impl UnwindSafe for CommentReason
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