Struct rowan::GreenNodeData
source · pub struct GreenNodeData { /* private fields */ }
Implementations§
source§impl GreenNodeData
impl GreenNodeData
sourcepub fn kind(&self) -> SyntaxKind
pub fn kind(&self) -> SyntaxKind
Kind 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 remove_child(&self, index: usize) -> GreenNode
pub fn splice_children<R, I>(&self, range: R, replace_with: I) -> GreenNode
Trait Implementations§
source§impl Borrow<GreenNodeData> for GreenNode
impl Borrow<GreenNodeData> for GreenNode
source§fn borrow(&self) -> &GreenNodeData
fn borrow(&self) -> &GreenNodeData
Immutably borrows from an owned value. Read more
source§impl Debug for GreenNodeData
impl Debug for GreenNodeData
source§impl Display for GreenNodeData
impl Display for GreenNodeData
source§impl PartialEq for GreenNodeData
impl PartialEq for GreenNodeData
Auto Trait Implementations§
impl Freeze for GreenNodeData
impl RefUnwindSafe for GreenNodeData
impl Send for GreenNodeData
impl Sync for GreenNodeData
impl Unpin for GreenNodeData
impl UnwindSafe for GreenNodeData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more