Struct regex_cursor::RopeyCursor
source · pub struct RopeyCursor<'a> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a> Clone for RopeyCursor<'a>
impl<'a> Clone for RopeyCursor<'a>
source§fn clone(&self) -> RopeyCursor<'a>
fn clone(&self) -> RopeyCursor<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Cursor for RopeyCursor<'_>
impl Cursor for RopeyCursor<'_>
source§fn chunk(&self) -> &[u8] ⓘ
fn chunk(&self) -> &[u8] ⓘ
Returns the current chunk. If
utf8_aware
returns true then this function
must never return a chunk that splits a unicode codepoint.
See utf8_aware
for details. Read moresource§fn advance(&mut self) -> bool
fn advance(&mut self) -> bool
Advances the cursor to the next chunk if possible. In that case
true
must be returned. If the end of data is reached this function should
return false
and not change the chunksource§fn backtrack(&mut self) -> bool
fn backtrack(&mut self) -> bool
Moves the cursor to the previous chunk if possible. In that case
true
must be returned If the start of data is reached this function should
return false
and not change the chunksource§fn utf8_aware(&self) -> bool
fn utf8_aware(&self) -> bool
Whether this cursor is aware of utf-8 codepoint boundaries. Read more
source§fn total_bytes(&self) -> Option<usize>
fn total_bytes(&self) -> Option<usize>
Auto Trait Implementations§
impl<'a> Freeze for RopeyCursor<'a>
impl<'a> RefUnwindSafe for RopeyCursor<'a>
impl<'a> Send for RopeyCursor<'a>
impl<'a> Sync for RopeyCursor<'a>
impl<'a> Unpin for RopeyCursor<'a>
impl<'a> UnwindSafe for RopeyCursor<'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