Struct jomini::BinaryTape [−][src]
Houses the tape of tokens that is extracted from binary data
Implementations
impl<'a> BinaryTape<'a>
[src]
pub fn new() -> Self
[src]
Creates an empty tape
pub fn from_eu4(data: &[u8]) -> Result<BinaryTape<'_>, Error>
[src]
Convenience method for creating a binary parser and parsing the given input in eu4 format
pub fn eu4_parser() -> BinaryTapeParser<Eu4Flavor>
[src]
Returns a parser for the eu4 flavor of binary data
pub fn from_ck3(data: &[u8]) -> Result<BinaryTape<'_>, Error>
[src]
Convenience method for creating a binary parser and parsing the given input in ck3 format
pub fn ck3_parser() -> BinaryTapeParser<Ck3Flavor>
[src]
Returns a parser for the ck3 flavor of binary data
pub fn parser_flavor<F>(flavor: F) -> BinaryTapeParser<F> where
F: BinaryFlavor,
[src]
F: BinaryFlavor,
Returns a parser for a given flavor of binary data
pub fn tokens(&self) -> &[BinaryToken<'a>]
[src]
Return the parsed tokens
Trait Implementations
impl<'a> Debug for BinaryTape<'a>
[src]
impl<'a> Default for BinaryTape<'a>
[src]
fn default() -> BinaryTape<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for BinaryTape<'a>
impl<'a> Send for BinaryTape<'a>
impl<'a> Sync for BinaryTape<'a>
impl<'a> Unpin for BinaryTape<'a>
impl<'a> UnwindSafe for BinaryTape<'a>
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, 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>,