[][src]Struct cursortanium::Cursor

pub struct Cursor<'a> { /* fields omitted */ }

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]

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]

impl<T> From<T> for 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.

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

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

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