pub(crate) struct Cursor<'a> {
pub(crate) rest: &'a str,
}
Fields§
§rest: &'a str
Implementations§
source§impl<'a> Cursor<'a>
impl<'a> Cursor<'a>
pub(crate) fn advance(&self, bytes: usize) -> Cursor<'a>
pub(crate) fn starts_with(&self, s: &str) -> bool
pub(crate) fn starts_with_char(&self, ch: char) -> bool
pub(crate) fn starts_with_fn<Pattern>(&self, f: Pattern) -> bool
pub(crate) fn is_empty(&self) -> bool
fn len(&self) -> usize
fn as_bytes(&self) -> &'a [u8] ⓘ
fn bytes(&self) -> Bytes<'a>
fn chars(&self) -> Chars<'a>
fn char_indices(&self) -> CharIndices<'a>
fn parse(&self, tag: &str) -> Result<Cursor<'a>, Reject>
Trait Implementations§
impl<'a> Copy for Cursor<'a>
impl<'a> Eq for Cursor<'a>
impl<'a> StructuralPartialEq for Cursor<'a>
Auto Trait Implementations§
impl<'a> Freeze 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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)