pub struct Cursor<'a> { /* private fields */ }Expand description
A source-aware cursor over one Directive’s tokens during setup.
Implementations§
Source§impl<'a> Cursor<'a>
impl<'a> Cursor<'a>
Sourcepub fn next_block(&mut self) -> bool
pub fn next_block(&mut self) -> bool
Enter or continue a nested brace-delimited block.
Sourcepub fn args(&mut self, targets: &mut [&mut String]) -> bool
pub fn args(&mut self, targets: &mut [&mut String]) -> bool
Fill targets with same-line arguments, leaving missing targets unchanged.
Sourcepub fn remaining_args(&mut self) -> Vec<String>
pub fn remaining_args(&mut self) -> Vec<String>
Consume the remaining same-line arguments, stopping before an opening brace.
Auto Trait Implementations§
impl<'a> Forget for Cursor<'a>
impl<'a> Freeze for Cursor<'a>
impl<'a> Move for Cursor<'a>
impl<'a> RefUnwindSafe for Cursor<'a>
impl<'a> Send for Cursor<'a>
impl<'a> Sync for Cursor<'a>
impl<'a> Unpin for Cursor<'a>
impl<'a> UnsafeUnpin for Cursor<'a>
impl<'a> UnwindSafe for Cursor<'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