pub struct Node { /* private fields */ }Expand description
A node in the move-tree arena.
Implementations§
Source§impl Node
impl Node
pub const fn parent(&self) -> Option<NodeId>
pub const fn chess_move(&self) -> Option<Move>
pub fn children(&self) -> &[NodeId]
pub fn comments(&self) -> &[CommentFragment]
pub const fn annotations(&self) -> &BTreeSet<Annotation>
pub fn add_comment(&mut self, comment: impl Into<CommentFragment>) -> bool
pub fn add_annotation(&mut self, annotation: Annotation) -> bool
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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