Struct jomini::TextTape [−][src]
Houses the tape of tokens that is extracted from plaintext data
Implementations
impl<'a> TextTape<'a>[src]
pub fn windows1252_reader(&self) -> ObjectReader<'_, '_, Windows1252Encoding>[src]
Creates a windows 1252 object reader from the parsed tape
pub fn utf8_reader(&self) -> ObjectReader<'_, '_, Utf8Encoding>[src]
Creates a utf-8 object reader from the parsed tape
impl<'a> TextTape<'a>[src]
pub fn new() -> Self[src]
Creates a new text tape
pub fn from_slice(data: &[u8]) -> Result<TextTape<'_>, Error>[src]
Convenience method for creating a text parser and parsing the given input
pub fn parser() -> TextTapeParser[src]
Returns a parser for text data
pub fn tokens(&self) -> &[TextToken<'a>][src]
Return the parsed tokens
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TextTape<'a>
impl<'a> Send for TextTape<'a>
impl<'a> Sync for TextTape<'a>
impl<'a> Unpin for TextTape<'a>
impl<'a> UnwindSafe for TextTape<'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>,