[][src]Struct pgnparse::parser::Book

pub struct Book {
    pub positions: HashMap<String, BookPosition>,
    pub max_depth: usize,
    pub me: Option<String>,
}

book

Fields

positions: HashMap<String, BookPosition>

positions

max_depth: usize

max depth

me: Option<String>

me

Implementations

impl Book[src]

book implementation

pub fn new() -> Book[src]

new book

pub fn me<T>(mut self: Self, me: T) -> Book where
    T: Display
[src]

set me

pub fn max_depth<T>(mut self: Self, max_depth: T) -> Book where
    T: Display
[src]

set max depth

pub fn parse<T>(&mut self, filename: T) where
    T: AsRef<Path> + Display
[src]

parse file to book

Trait Implementations

impl Debug for Book[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,