Struct rustc_builtin_macros::format_foreign::strcursor::StrCursor [−][src]
Fields
s: &'a strat: usizeImplementations
impl<'a> StrCursor<'a>[src]
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 Copy 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more