[−][src]Struct oatie::stepper::charcursor::CharCursor
Indexes into a DocString, tracking two owned DocStrings left() and right() which can be retrieved by reference. Because indexing into the string is performed on DocString internals, this makes scanning a Unicode string much faster than split_at().
Methods
impl<S: Schema> CharCursor<S>[src]
impl<S: Schema> CharCursor<S>pub fn from_docstring(
text: &DocString,
styles: S::CharsProperties
) -> CharCursor<S>[src]
pub fn from_docstring(
text: &DocString,
styles: S::CharsProperties
) -> CharCursor<S>pub fn from_docstring_end(
text: &DocString,
styles: S::CharsProperties
) -> CharCursor<S>[src]
pub fn from_docstring_end(
text: &DocString,
styles: S::CharsProperties
) -> CharCursor<S>pub fn update_from_docstring(
&mut self,
text: &DocString,
styles: S::CharsProperties
)[src]
pub fn update_from_docstring(
&mut self,
text: &DocString,
styles: S::CharsProperties
)pub fn style<'a>(&'a self) -> &'a S::CharsProperties[src]
pub fn style<'a>(&'a self) -> &'a S::CharsPropertiespub fn left<'a>(&'a self) -> Option<&'a DocString>[src]
pub fn left<'a>(&'a self) -> Option<&'a DocString>pub fn right<'a>(&'a self) -> Option<&'a DocString>[src]
pub fn right<'a>(&'a self) -> Option<&'a DocString>pub fn left_element<'a>(&'a self) -> Option<&'a DocElement<S>>[src]
pub fn left_element<'a>(&'a self) -> Option<&'a DocElement<S>>pub fn right_element<'a>(&'a self) -> Option<&'a DocElement<S>>[src]
pub fn right_element<'a>(&'a self) -> Option<&'a DocElement<S>>pub fn value(&self) -> usize[src]
pub fn value(&self) -> usizepub fn index_from_end(&self) -> usize[src]
pub fn index_from_end(&self) -> usizepub fn value_add(&mut self, add: usize)[src]
pub fn value_add(&mut self, add: usize)pub fn value_sub(&mut self, sub: usize)[src]
pub fn value_sub(&mut self, sub: usize)Trait Implementations
impl<S: PartialEq + Schema> PartialEq<CharCursor<S>> for CharCursor<S>[src]
impl<S: PartialEq + Schema> PartialEq<CharCursor<S>> for CharCursor<S>fn eq(&self, other: &CharCursor<S>) -> bool[src]
fn eq(&self, other: &CharCursor<S>) -> boolfn ne(&self, other: &CharCursor<S>) -> bool[src]
fn ne(&self, other: &CharCursor<S>) -> boolimpl<S: Clone + Schema> Clone for CharCursor<S>[src]
impl<S: Clone + Schema> Clone for CharCursor<S>fn clone(&self) -> CharCursor<S>[src]
fn clone(&self) -> CharCursor<S>fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<S: Debug + Schema> Debug for CharCursor<S>[src]
impl<S: Debug + Schema> Debug for CharCursor<S>Auto Trait Implementations
impl<S> Send for CharCursor<S> where
<S as Schema>::CharsProperties: Send,
<S as Schema>::GroupProperties: Send,
impl<S> Send for CharCursor<S> where
<S as Schema>::CharsProperties: Send,
<S as Schema>::GroupProperties: Send, impl<S> Sync for CharCursor<S> where
<S as Schema>::CharsProperties: Sync,
<S as Schema>::GroupProperties: Sync,
impl<S> Sync for CharCursor<S> where
<S as Schema>::CharsProperties: Sync,
<S as Schema>::GroupProperties: Sync, Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut T