[−][src]Struct rowan::SyntaxText
Methods
impl SyntaxText[src]
pub fn len(&self) -> TextUnit[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<TextUnit>[src]
pub fn char_at(&self, offset: TextUnit) -> Option<char>[src]
pub fn slice<R: SyntaxTextRange>(&self, range: R) -> SyntaxText[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]
F: FnMut(T, &str) -> Result<T, E>,
pub fn try_for_each_chunk<F: FnMut(&str) -> Result<(), E>, E>(
&self,
f: F
) -> Result<(), E>[src]
&self,
f: F
) -> Result<(), E>
pub fn for_each_chunk<F: FnMut(&str)>(&self, f: F)[src]
Trait Implementations
impl Clone for SyntaxText[src]
fn clone(&self) -> SyntaxText[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SyntaxText[src]
impl Display for SyntaxText[src]
impl Eq for SyntaxText[src]
impl From<SyntaxText> for String[src]
fn from(text: SyntaxText) -> String[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]
fn eq(&self, other: &SyntaxText) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialEq<str> for SyntaxText[src]
Auto Trait Implementations
impl !RefUnwindSafe for SyntaxText
impl !Send for SyntaxText
impl !Sync for SyntaxText
impl Unpin for SyntaxText
impl !UnwindSafe for SyntaxText
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,
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.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,