[−][src]Struct rustc_builtin_macros::format_foreign::strcursor::StrCursor
Fields
s: &'a strat: usizeImplementations
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]
pub(in format_foreign::strcursor) fn slice_before(
&self
) -> &'a str[src]
&self
) -> &'a str
pub fn slice_after(&self) -> &'a str[src]
pub fn slice_between(&self, until: StrCursor<'a>) -> Option<&'a str>[src]
pub(in format_foreign::strcursor) fn cp_after(
&self
) -> Option<char>[src]
&self
) -> Option<char>
pub(in format_foreign::strcursor) fn try_seek_right_cp(
&mut self
) -> bool[src]
&mut self
) -> bool
pub(in format_foreign::strcursor) fn seek_right(
&mut self,
bytes: usize
)[src]
&mut self,
bytes: usize
)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,