pub struct PgnLine<T: PartialEq + Clone + Display> {
pub lines: Vec<Rc<RefCell<PgnLine<T>>>>,
pub parent: Option<Rc<RefCell<PgnLine<T>>>>,
pub halfmove_clock: u32,
pub fullmove_number: u32,
pub en_passant: Option<Position>,
pub castling_rights: u8,
pub game_status: GameStatus,
pub mov: T,
}Expand description
A struct representing a PGN line or variation Its also a tree node that contains a list of child nodes, the parent node, the move number and the move itself
Fields§
§lines: Vec<Rc<RefCell<PgnLine<T>>>>§parent: Option<Rc<RefCell<PgnLine<T>>>>§halfmove_clock: u32§fullmove_number: u32§en_passant: Option<Position>§castling_rights: u8§game_status: GameStatus§mov: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PgnLine<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PgnLine<T>
impl<T> !Send for PgnLine<T>
impl<T> !Sync for PgnLine<T>
impl<T> Unpin for PgnLine<T>where
T: Unpin,
impl<T> !UnwindSafe for PgnLine<T>
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