Struct jomini::binary::BinaryTapeParser
source · pub struct BinaryTapeParser;
Expand description
Customizes how the binary tape is parsed from data
Implementations§
source§impl BinaryTapeParser
impl BinaryTapeParser
sourcepub fn parse_slice(self, data: &[u8]) -> Result<BinaryTape<'_>, Error>
pub fn parse_slice(self, data: &[u8]) -> Result<BinaryTape<'_>, Error>
Parse the binary format return the data tape
sourcepub fn parse_slice_into_tape<'a>(
self,
data: &'a [u8],
tape: &mut BinaryTape<'a>
) -> Result<(), Error>
pub fn parse_slice_into_tape<'a>( self, data: &'a [u8], tape: &mut BinaryTape<'a> ) -> Result<(), Error>
Parse the binary format into the given tape.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryTapeParser
impl RefUnwindSafe for BinaryTapeParser
impl Send for BinaryTapeParser
impl Sync for BinaryTapeParser
impl Unpin for BinaryTapeParser
impl UnwindSafe for BinaryTapeParser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more