Struct rowan::GreenNodeData [−][src]
#[repr(transparent)]pub struct GreenNodeData { /* fields omitted */ }
Implementations
Kind of this node.
pub fn children(&self) -> Children<'_>ⓘNotable traits for Children<'a>impl<'a> Iterator for Children<'a> type Item = NodeOrToken<&'a GreenNodeData, &'a GreenTokenData>;
pub fn children(&self) -> Children<'_>ⓘNotable traits for Children<'a>impl<'a> Iterator for Children<'a> type Item = NodeOrToken<&'a GreenNodeData, &'a GreenTokenData>;
Notable traits for Children<'a>
impl<'a> Iterator for Children<'a> type Item = NodeOrToken<&'a GreenNodeData, &'a GreenTokenData>;
Children of this node.
pub fn replace_child(
&self,
index: usize,
new_child: NodeOrToken<GreenNode, GreenToken>
) -> GreenNode
pub fn insert_child(
&self,
index: usize,
new_child: NodeOrToken<GreenNode, GreenToken>
) -> GreenNode
pub fn splice_children<R, I>(&self, range: R, replace_with: I) -> GreenNode where
R: RangeBounds<usize>,
I: IntoIterator<Item = NodeOrToken<GreenNode, GreenToken>>,
Trait Implementations
Immutably borrows from an owned value. Read more