[−][src]Struct rowan::cursor::SyntaxToken
Implementations
impl SyntaxToken
[src]
pub fn replace_with(&self, replacement: GreenToken) -> GreenNode
[src]
pub fn kind(&self) -> SyntaxKind
[src]
pub fn text_range(&self) -> TextRange
[src]
pub fn text(&self) -> &SmolStr
[src]
pub fn green(&self) -> &GreenToken
[src]
pub fn parent(&self) -> SyntaxNode
[src]
pub fn ancestors(&self) -> impl Iterator<Item = SyntaxNode>
[src]
pub fn next_sibling_or_token(&self) -> Option<SyntaxElement>
[src]
pub fn prev_sibling_or_token(&self) -> Option<SyntaxElement>
[src]
pub fn siblings_with_tokens(
&self,
direction: Direction
) -> impl Iterator<Item = SyntaxElement>
[src]
&self,
direction: Direction
) -> impl Iterator<Item = SyntaxElement>
pub fn next_token(&self) -> Option<SyntaxToken>
[src]
pub fn prev_token(&self) -> Option<SyntaxToken>
[src]
Trait Implementations
impl Clone for SyntaxToken
[src]
fn clone(&self) -> SyntaxToken
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SyntaxToken
[src]
impl Display for SyntaxToken
[src]
impl Eq for SyntaxToken
[src]
impl<L: Language> From<SyntaxToken<L>> for SyntaxToken
[src]
fn from(token: SyntaxToken<L>) -> SyntaxToken
[src]
impl From<SyntaxToken> for SyntaxElement
[src]
fn from(token: SyntaxToken) -> SyntaxElement
[src]
impl<L: Language> From<SyntaxToken> for SyntaxToken<L>
[src]
fn from(raw: SyntaxToken) -> SyntaxToken<L>
[src]
impl Hash for SyntaxToken
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SyntaxToken> for SyntaxToken
[src]
fn eq(&self, other: &SyntaxToken) -> bool
[src]
fn ne(&self, other: &SyntaxToken) -> bool
[src]
impl StructuralEq for SyntaxToken
[src]
impl StructuralPartialEq for SyntaxToken
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SyntaxToken
impl !Send for SyntaxToken
impl !Sync for SyntaxToken
impl Unpin for SyntaxToken
impl !UnwindSafe for SyntaxToken
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<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>,