[][src]Struct pgnparse::parser::PgnInfo

pub struct PgnInfo {
    pub headers: HashMap<String, String>,
    pub moves: Vec<SanUciFenEpd>,
}

pgn headers and moves

Fields

headers: HashMap<String, String>moves: Vec<SanUciFenEpd>

Implementations

impl PgnInfo[src]

implementation for PgnInfo

pub fn new() -> PgnInfo[src]

create new pgn info

pub fn push(&mut self, san_uci_fen_epd: SanUciFenEpd)[src]

push san uci fen epd

pub fn insert_header<K, V>(&mut self, key: K, value: V) where
    K: Display,
    V: Display
[src]

insert header

pub fn get_header<T>(&mut self, key: T) -> String where
    T: Display
[src]

get header

Trait Implementations

impl Debug for PgnInfo[src]

impl<'de> Deserialize<'de> for PgnInfo[src]

impl Serialize for PgnInfo[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,