Struct ra_ap_tt::buffer::Cursor [−][src]
pub struct Cursor<'a> { /* fields omitted */ }
Expand description
A safe version of Cursor
from syn
crate https://github.com/dtolnay/syn/blob/6533607f91686545cb034d2838beea338d9d0742/src/buffer.rs#L125
Implementations
If the cursor is pointing at the end of a subtree, returns the parent subtree
If the cursor is pointing at a Subtree
, returns
a cursor into that subtree
If the cursor is pointing at a TokenTree
, returns it
Bump the cursor, if it is a subtree, returns a cursor into that subtree
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Cursor<'a>
impl<'a> UnwindSafe for Cursor<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more