Struct rustc_builtin_macros::format_foreign::strcursor::StrCursor[−][src]

pub struct StrCursor<'a> {
    s: &'a str,
    pub at: usize,
}

Fields

s: &'a strat: usize

Implementations

impl<'a> StrCursor<'a>[src]

pub fn new_at(s: &'a str, at: usize) -> StrCursor<'a>[src]

pub fn at_next_cp(self) -> Option<StrCursor<'a>>[src]

pub fn next_cp(self) -> Option<(char, StrCursor<'a>)>[src]

fn slice_before(&self) -> &'a str[src]

pub fn slice_after(&self) -> &'a str[src]

pub fn slice_between(&self, until: StrCursor<'a>) -> Option<&'a str>[src]

fn cp_after(&self) -> Option<char>[src]

fn try_seek_right_cp(&mut self) -> bool[src]

fn seek_right(&mut self, bytes: usize)[src]

Trait Implementations

impl<'a> Clone for StrCursor<'a>[src]

impl Copy for StrCursor<'_>[src]

impl Debug for StrCursor<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for StrCursor<'a>

impl<'a> Send for StrCursor<'a>

impl<'a> Sync for StrCursor<'a>

impl<'a> Unpin for StrCursor<'a>

impl<'a> UnwindSafe for StrCursor<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.