Struct ra_ap_syntax::SyntaxText [−][src]
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]
R: SyntaxTextRange,
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, E>(&self, f: F) -> Result<(), E> where
F: FnMut(&str) -> Result<(), E>,
[src]
F: FnMut(&str) -> Result<(), E>,
pub fn for_each_chunk<F>(&self, f: F) where
F: FnMut(&str),
[src]
F: FnMut(&str),
Trait Implementations
impl Clone for SyntaxText
[src]
pub fn clone(&self) -> SyntaxText
[src]
pub 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<'_> PartialEq<&'_ str> for SyntaxText
[src]
impl PartialEq<SyntaxText> for SyntaxText
[src]
pub fn eq(&self, other: &SyntaxText) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<SyntaxText> for str
[src]
pub fn eq(&self, rhs: &SyntaxText) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<SyntaxText> for &'_ str
[src]
pub fn eq(&self, rhs: &SyntaxText) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for SyntaxText
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SyntaxText
[src]
impl !Send for SyntaxText
[src]
impl !Sync for SyntaxText
[src]
impl Unpin for SyntaxText
[src]
impl !UnwindSafe for SyntaxText
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,