pub struct ValueWalker<'f> { /* private fields */ }Expand description
iterator of Arena::walk_values: token ids in document order
Implementations§
Source§impl<'f> ValueWalker<'f>
impl<'f> ValueWalker<'f>
Sourcepub fn of_node(
arena: &Arena,
node: u32,
options: WalkerValueOptions<'f>,
reverse: bool,
) -> Self
pub fn of_node( arena: &Arena, node: u32, options: WalkerValueOptions<'f>, reverse: bool, ) -> Self
walk the value tokens of a node / token
Sourcepub fn of_tokens(
tokens: &[u32],
options: WalkerValueOptions<'f>,
reverse: bool,
) -> Self
pub fn of_tokens( tokens: &[u32], options: WalkerValueOptions<'f>, reverse: bool, ) -> Self
walk tokens
pub fn next(&mut self, arena: &Arena) -> Option<u32>
pub fn finish(&mut self)
pub fn iter<'w>( &'w mut self, arena: &'w Arena, ) -> impl Iterator<Item = u32> + use<'w, 'f>
Auto Trait Implementations§
impl<'f> !RefUnwindSafe for ValueWalker<'f>
impl<'f> !Send for ValueWalker<'f>
impl<'f> !Sync for ValueWalker<'f>
impl<'f> !UnwindSafe for ValueWalker<'f>
impl<'f> Forget for ValueWalker<'f>
impl<'f> Freeze for ValueWalker<'f>
impl<'f> Move for ValueWalker<'f>
impl<'f> Unpin for ValueWalker<'f>
impl<'f> UnsafeUnpin for ValueWalker<'f>
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