[−][src]Struct cursortanium::Cursor
Methods
impl<'a> Cursor<'a>
[src]
pub fn from_string_at(doc: Cow<'a, str>, index: usize) -> Cursor<'a>
[src]
pub fn get_doc(&self) -> &Cow<'a, str>
[src]
pub fn get_index(&self) -> usize
[src]
pub fn get_end_index(&self) -> usize
[src]
pub fn is_at(&self, cursor: &Cursor) -> bool
[src]
pub fn is_eof(&self) -> bool
[src]
pub fn set_index_mut(&mut self, index: usize)
[src]
pub fn next_mut(&mut self, count: usize)
[src]
pub fn starts_with(&self, test_str: &str) -> bool
[src]
pub fn one_of<'b>(&self, test_strs: &'b Vec<String>) -> Option<&'b String>
[src]
pub fn lookahead(&self, count: usize) -> String
[src]
pub fn take_until(&self, cursor: &Cursor) -> String
[src]
pub fn move_to_mut(&mut self, cursor: &Cursor)
[src]
Trait Implementations
impl<'a> From<String> for Cursor<'a>
[src]
impl<'a> From<&'a String> for Cursor<'a>
[src]
impl<'a> From<Cow<'a, str>> for Cursor<'a>
[src]
impl<'a> Clone for Cursor<'a>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<'a> Send for Cursor<'a>
impl<'a> Sync for Cursor<'a>
impl<'a> Unpin for Cursor<'a>
impl<'a> UnwindSafe for Cursor<'a>
impl<'a> RefUnwindSafe for Cursor<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,