Struct boxcars::ParserBuilder
source · [−]pub struct ParserBuilder<'a> { /* private fields */ }
Expand description
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.
Implementations
sourceimpl<'a> ParserBuilder<'a>
impl<'a> ParserBuilder<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn always_check_crc(self) -> ParserBuilder<'a>
pub fn never_check_crc(self) -> ParserBuilder<'a>
pub fn on_error_check_crc(self) -> ParserBuilder<'a>
pub fn with_crc_check(self, check: CrcCheck) -> ParserBuilder<'a>
pub fn must_parse_network_data(self) -> ParserBuilder<'a>
pub fn never_parse_network_data(self) -> ParserBuilder<'a>
pub fn ignore_network_data_on_error(self) -> ParserBuilder<'a>
pub fn with_network_parse(self, parse: NetworkParse) -> ParserBuilder<'a>
pub fn parse(self) -> Result<Replay, ParseError>
Trait Implementations
sourceimpl<'a> Clone for ParserBuilder<'a>
impl<'a> Clone for ParserBuilder<'a>
sourcefn clone(&self) -> ParserBuilder<'a>
fn clone(&self) -> ParserBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for ParserBuilder<'a>
impl<'a> Debug for ParserBuilder<'a>
sourceimpl<'a> PartialEq<ParserBuilder<'a>> for ParserBuilder<'a>
impl<'a> PartialEq<ParserBuilder<'a>> for ParserBuilder<'a>
sourcefn eq(&self, other: &ParserBuilder<'a>) -> bool
fn eq(&self, other: &ParserBuilder<'a>) -> bool
impl<'a> StructuralPartialEq for ParserBuilder<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParserBuilder<'a>
impl<'a> Send for ParserBuilder<'a>
impl<'a> Sync for ParserBuilder<'a>
impl<'a> Unpin for ParserBuilder<'a>
impl<'a> UnwindSafe for ParserBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more