[][src]Struct boxcars::ParserBuilder

pub struct ParserBuilder<'a> { /* fields omitted */ }

The main entry point to parsing replays in boxcars. Allows one to customize parsing options, such as only parsing the header and forgoing crc (corruption) checks.

Methods

impl<'a> ParserBuilder<'a>[src]

pub fn new(data: &'a [u8]) -> Self[src]

pub fn always_check_crc(self) -> ParserBuilder<'a>[src]

pub fn never_check_crc(self) -> ParserBuilder<'a>[src]

pub fn on_error_check_crc(self) -> ParserBuilder<'a>[src]

pub fn with_crc_check(self, check: CrcCheck) -> ParserBuilder<'a>[src]

pub fn must_parse_network_data(self) -> ParserBuilder<'a>[src]

pub fn never_parse_network_data(self) -> ParserBuilder<'a>[src]

pub fn ignore_network_data_on_error(self) -> ParserBuilder<'a>[src]

pub fn with_network_parse(self, parse: NetworkParse) -> ParserBuilder<'a>[src]

pub fn parse(self) -> Result<Replay<'a>, ParseError>[src]

Trait Implementations

impl<'a> PartialEq<ParserBuilder<'a>> for ParserBuilder<'a>[src]

impl<'a> Clone for ParserBuilder<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for ParserBuilder<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for ParserBuilder<'a>

impl<'a> Send for ParserBuilder<'a>

impl<'a> Sync for ParserBuilder<'a>

impl<'a> UnwindSafe for ParserBuilder<'a>

impl<'a> RefUnwindSafe for ParserBuilder<'a>

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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