[][src]Struct ra_ap_syntax::SyntaxText

pub struct SyntaxText { /* fields omitted */ }

Implementations

impl SyntaxText[src]

pub fn len(&self) -> TextSize[src]

pub fn is_empty(&self) -> bool[src]

pub fn contains_char(&self, c: char) -> bool[src]

pub fn find_char(&self, c: char) -> Option<TextSize>[src]

pub fn char_at(&self, offset: TextSize) -> Option<char>[src]

pub fn slice<R>(&self, range: R) -> SyntaxText where
    R: SyntaxTextRange, 
[src]

pub fn try_fold_chunks<T, F, E>(&self, init: T, f: F) -> Result<T, E> where
    F: FnMut(T, &str) -> Result<T, E>, 
[src]

pub fn try_for_each_chunk<F, E>(&self, f: F) -> Result<(), E> where
    F: FnMut(&str) -> Result<(), E>, 
[src]

pub fn for_each_chunk<F>(&self, f: F) where
    F: FnMut(&str), 
[src]

Trait Implementations

impl Clone for SyntaxText[src]

impl Debug for SyntaxText[src]

impl Display for SyntaxText[src]

impl Eq for SyntaxText[src]

impl<'_> PartialEq<&'_ str> for SyntaxText[src]

impl<'_> PartialEq<SyntaxText> for &'_ str[src]

impl PartialEq<SyntaxText> for str[src]

impl PartialEq<SyntaxText> for SyntaxText[src]

impl PartialEq<str> for SyntaxText[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.