pub struct MultiLineStream<'a> {
pub source: &'a str,
/* private fields */
}
Expand description
Fields§
§source: &'a str
Implementations§
Source§impl<'a> MultiLineStream<'a>
impl<'a> MultiLineStream<'a>
pub fn new(source: &'a str, position: usize) -> MultiLineStream<'a>
pub fn eos(&self) -> bool
pub fn pos(&self) -> usize
pub fn go_back(&mut self, n: usize)
pub fn advance(&mut self, n: usize)
pub fn go_to_end(&mut self)
pub fn peek_char(&self, n: isize) -> Option<u8>
pub fn advance_if_char(&mut self, ch: u8) -> bool
pub fn advance_if_chars(&mut self, ch: &str) -> bool
pub fn advance_until_char(&mut self, ch: u8) -> bool
pub fn advance_until_chars(&mut self, ch: &str) -> bool
pub fn skip_whitespace(&mut self) -> bool
pub fn advance_while_char<F>(&mut self, condition: F) -> usize
Auto Trait Implementations§
impl<'a> Freeze for MultiLineStream<'a>
impl<'a> RefUnwindSafe for MultiLineStream<'a>
impl<'a> Send for MultiLineStream<'a>
impl<'a> Sync for MultiLineStream<'a>
impl<'a> Unpin for MultiLineStream<'a>
impl<'a> UnwindSafe for MultiLineStream<'a>
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