pub struct StatementStream<'a> { /* private fields */ }
Implementations§
Source§impl<'a> StatementStream<'a>
impl<'a> StatementStream<'a>
pub fn new(statement: &'a str) -> Self
pub fn push_ordered_tag(&mut self, tag: TokenStream)
pub fn insert_keyed_tag(&mut self, key: String, tag: TokenStream)
pub fn info(&self) -> StreamInfo
pub fn current_pos(&self) -> usize
pub fn remaining(&self) -> usize
pub fn nremaining(&self, n: usize) -> bool
pub fn peek(&mut self) -> Option<char>
pub fn peekn(&mut self, n: usize) -> Option<String>
pub fn check<P: 'static + Parse>(&self) -> bool
pub fn find<P: 'static + Parse<Output = P> + Clone>(&self) -> Option<P>
pub fn find_from<P: 'static + Parse>(&self) -> Option<P::Output>
pub fn parse<P: 'static + Parse<Output = P> + Clone>(&mut self) -> Result<P>
pub fn parse_from<P: 'static + Parse>(&mut self) -> Result<P::Output>
Trait Implementations§
Source§impl<'a> Clone for StatementStream<'a>
impl<'a> Clone for StatementStream<'a>
Source§fn clone(&self) -> StatementStream<'a>
fn clone(&self) -> StatementStream<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for StatementStream<'a>
impl<'a> !RefUnwindSafe for StatementStream<'a>
impl<'a> !Send for StatementStream<'a>
impl<'a> !Sync for StatementStream<'a>
impl<'a> Unpin for StatementStream<'a>
impl<'a> !UnwindSafe for StatementStream<'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