Struct ra_ap_syntax::GreenNode [−][src]
#[repr(transparent)]pub struct GreenNode { /* fields omitted */ }
Expand description
Internal node in the immutable tree. It has other nodes and tokens as children.
Implementations
pub fn new<I>(kind: SyntaxKind, children: I) -> GreenNode where
I: IntoIterator<Item = NodeOrToken<GreenNode, GreenToken>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
pub fn new<I>(kind: SyntaxKind, children: I) -> GreenNode where
I: IntoIterator<Item = NodeOrToken<GreenNode, GreenToken>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator, Creates new Node.
Methods from Deref<Target = GreenNodeData>
Kind of this node.
pub fn replace_child(
&self,
index: usize,
new_child: NodeOrToken<GreenNode, GreenToken>
) -> GreenNodepub fn insert_child(
&self,
index: usize,
new_child: NodeOrToken<GreenNode, GreenToken>
) -> GreenNodepub fn splice_children<R, I>(&self, range: R, replace_with: I) -> GreenNode where
I: IntoIterator<Item = NodeOrToken<GreenNode, GreenToken>>,
R: RangeBounds<usize>, Trait Implementations
Immutably borrows from an owned value. Read more
type Target = GreenNodeData
type Target = GreenNodeDataThe resulting type after dereferencing.
Dereferences the value.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GreenNodeimpl UnwindSafe for GreenNodeBlanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.