[−][src]Struct jomini::BinaryTapeParser
Customizes how the binary tape is parsed from data
Implementations
impl<F> BinaryTapeParser<F> where
F: BinaryFlavor,
[src]
F: BinaryFlavor,
pub fn with_flavor(flavor: F) -> Self
[src]
Create a binary parser with a given flavor
pub fn parse_slice(self, data: &[u8]) -> Result<BinaryTape<'_>, Error>
[src]
Parse the binary format according to the parser's flavor and return the data tape
pub fn parse_slice_into_tape<'a>(
self,
data: &'a [u8],
tape: &mut BinaryTape<'a>
) -> Result<(), Error>
[src]
self,
data: &'a [u8],
tape: &mut BinaryTape<'a>
) -> Result<(), Error>
Parse the binary format into the given tape according to the parser's flavor.
Trait Implementations
impl<F: Debug> Debug for BinaryTapeParser<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for BinaryTapeParser<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for BinaryTapeParser<F> where
F: Send,
F: Send,
impl<F> Sync for BinaryTapeParser<F> where
F: Sync,
F: Sync,
impl<F> Unpin for BinaryTapeParser<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for BinaryTapeParser<F> where
F: UnwindSafe,
F: UnwindSafe,
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,
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, 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.
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>,