Struct boxcars::ParserBuilder
[−]
[src]
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>, Error>
[src]
Trait Implementations
impl<'a> Debug for ParserBuilder<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Clone for ParserBuilder<'a>
[src]
fn clone(&self) -> ParserBuilder<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for ParserBuilder<'a>
[src]
fn eq(&self, __arg_0: &ParserBuilder<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParserBuilder<'a>) -> bool
[src]
This method tests for !=
.