pub struct Collection { /* private fields */ }Expand description
Source spans and tree links; no board or raster is retained per move.
Implementations§
Source§impl Collection
impl Collection
pub fn parse( source: Arc<[u8]>, format: Format, cancel: &AtomicBool, ) -> Result<Self, Error>
pub fn nodes(&self) -> &[Node]
pub fn games(&self) -> &[Game]
pub fn source(&self) -> &[u8] ⓘ
pub fn node_for_offset(&self, offset: usize) -> NodeId
pub fn san(&self, node: NodeId) -> Option<&str>
pub fn comment(&self, node: NodeId) -> String
pub fn annotations(&self, node: NodeId) -> String
pub fn has_comment(&self, node: NodeId) -> bool
pub fn move_number(&self, node: NodeId) -> u32
pub fn move_color(&self, node: NodeId) -> Option<Color>
pub fn title(&self, game: usize) -> String
pub fn position( &self, node: NodeId, cancel: &AtomicBool, ) -> Result<Position, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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