[−][src]Struct rowan::cursor::SyntaxNode
Implementations
impl SyntaxNode
[src]
pub fn new_root(green: GreenNode) -> SyntaxNode
[src]
pub fn replace_with(&self, replacement: GreenNode) -> GreenNode
[src]
pub fn kind(&self) -> SyntaxKind
[src]
pub fn text_range(&self) -> TextRange
[src]
pub fn text(&self) -> SyntaxText
[src]
pub fn green(&self) -> &GreenNode
[src]
pub fn parent(&self) -> Option<SyntaxNode>
[src]
pub fn ancestors(&self) -> impl Iterator<Item = SyntaxNode>
[src]
pub fn children(&self) -> SyntaxNodeChildrenⓘNotable traits for SyntaxNodeChildren
impl Iterator for SyntaxNodeChildren type Item = SyntaxNode;
[src]
Notable traits for SyntaxNodeChildren
impl Iterator for SyntaxNodeChildren type Item = SyntaxNode;
pub fn children_with_tokens(&self) -> SyntaxElementChildrenⓘNotable traits for SyntaxElementChildren
impl Iterator for SyntaxElementChildren type Item = SyntaxElement;
[src]
Notable traits for SyntaxElementChildren
impl Iterator for SyntaxElementChildren type Item = SyntaxElement;
pub fn first_child(&self) -> Option<SyntaxNode>
[src]
pub fn first_child_or_token(&self) -> Option<SyntaxElement>
[src]
pub fn last_child(&self) -> Option<SyntaxNode>
[src]
pub fn last_child_or_token(&self) -> Option<SyntaxElement>
[src]
pub fn next_sibling(&self) -> Option<SyntaxNode>
[src]
pub fn next_sibling_or_token(&self) -> Option<SyntaxElement>
[src]
pub fn prev_sibling(&self) -> Option<SyntaxNode>
[src]
pub fn prev_sibling_or_token(&self) -> Option<SyntaxElement>
[src]
pub fn first_token(&self) -> Option<SyntaxToken>
[src]
pub fn last_token(&self) -> Option<SyntaxToken>
[src]
pub fn siblings(&self, direction: Direction) -> impl Iterator<Item = SyntaxNode>
[src]
pub fn siblings_with_tokens(
&self,
direction: Direction
) -> impl Iterator<Item = SyntaxElement>
[src]
&self,
direction: Direction
) -> impl Iterator<Item = SyntaxElement>
pub fn descendants(&self) -> impl Iterator<Item = SyntaxNode>
[src]
pub fn descendants_with_tokens(&self) -> impl Iterator<Item = SyntaxElement>
[src]
pub fn preorder(&self) -> Preorderⓘ
[src]
pub fn preorder_with_tokens<'a>(
&'a self
) -> impl Iterator<Item = WalkEvent<SyntaxElement>>
[src]
&'a self
) -> impl Iterator<Item = WalkEvent<SyntaxElement>>
pub fn token_at_offset(&self, offset: TextSize) -> TokenAtOffset<SyntaxToken>ⓘNotable traits for TokenAtOffset<T>
impl<T> Iterator for TokenAtOffset<T> type Item = T;
[src]
Notable traits for TokenAtOffset<T>
impl<T> Iterator for TokenAtOffset<T> type Item = T;
pub fn covering_element(&self, range: TextRange) -> SyntaxElement
[src]
pub fn child_or_token_at_range(&self, range: TextRange) -> Option<SyntaxElement>
[src]
Trait Implementations
impl Clone for SyntaxNode
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SyntaxNode
[src]
impl Display for SyntaxNode
[src]
impl Drop for SyntaxNode
[src]
impl Eq for SyntaxNode
[src]
impl<L: Language> From<SyntaxNode<L>> for SyntaxNode
[src]
fn from(node: SyntaxNode<L>) -> SyntaxNode
[src]
impl From<SyntaxNode> for SyntaxElement
[src]
fn from(node: SyntaxNode) -> SyntaxElement
[src]
impl<L: Language> From<SyntaxNode> for SyntaxNode<L>
[src]
fn from(raw: SyntaxNode) -> SyntaxNode<L>
[src]
impl Hash for SyntaxNode
[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<SyntaxNode> for SyntaxNode
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SyntaxNode
impl !Send for SyntaxNode
impl !Sync for SyntaxNode
impl Unpin for SyntaxNode
impl !UnwindSafe for SyntaxNode
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>,