pub struct Text<'a> { /* private fields */ }
Trait Implementations
sourceimpl<'a> Input for Text<'a>
impl<'a> Input for Text<'a>
type Token = char
type InSlice = &'a str
type Slice = &'a str
type Many = <Text<'a> as Input>::Slice
type Context = Position<'a>
fn peek(&mut self) -> Option<Self::Token>
fn peek_slice(&mut self, slice: Self::InSlice) -> Option<Self::Slice>
fn skip_many<F>(&mut self, cond: F) -> usize where
F: FnMut(Self::Token) -> bool,
fn take_many<F>(&mut self, cond: F) -> Self::Many where
F: FnMut(Self::Token) -> bool,
fn advance(&mut self, count: usize)
fn is_empty(&mut self) -> bool
fn context(&mut self) -> Option<Position<'a>>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more