[−][src]Struct boxcars::ParserBuilder
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
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, ParseError>
[src]
Trait Implementations
impl<'a> Clone for ParserBuilder<'a>
[src]
pub fn clone(&self) -> ParserBuilder<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ParserBuilder<'a>
[src]
impl<'a> PartialEq<ParserBuilder<'a>> for ParserBuilder<'a>
[src]
pub fn eq(&self, other: &ParserBuilder<'a>) -> bool
[src]
pub fn ne(&self, other: &ParserBuilder<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for ParserBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParserBuilder<'a>
[src]
impl<'a> Send for ParserBuilder<'a>
[src]
impl<'a> Sync for ParserBuilder<'a>
[src]
impl<'a> Unpin for ParserBuilder<'a>
[src]
impl<'a> UnwindSafe for ParserBuilder<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,