[][src]Struct jomini::BinaryTapeParser

pub struct BinaryTapeParser<F> { /* fields omitted */ }

Customizes how the binary tape is parsed from data

Implementations

impl<F> BinaryTapeParser<F> where
    F: BinaryFlavor
[src]

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]

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

impl<F> Send for BinaryTapeParser<F> where
    F: Send

impl<F> Sync for BinaryTapeParser<F> where
    F: Sync

impl<F> Unpin for BinaryTapeParser<F> where
    F: Unpin

impl<F> UnwindSafe for BinaryTapeParser<F> where
    F: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.