[−][src]Struct rowan::GreenNode
Internal node in the immutable tree. It has other nodes and tokens as children.
Implementations
impl GreenNode
[src]
pub fn new<I>(kind: SyntaxKind, children: I) -> GreenNode where
I: IntoIterator<Item = NodeOrToken<GreenNode, GreenToken>>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = NodeOrToken<GreenNode, GreenToken>>,
I::IntoIter: ExactSizeIterator,
Creates new Node.
pub fn kind(&self) -> SyntaxKind
[src]
Kind of this node.
pub fn text_len(&self) -> TextSize
[src]
Returns the length of the text covered by this node.
pub fn children(&self) -> Children<'_>ⓘNotable traits for Children<'a>
impl<'a> Iterator for Children<'a> type Item = NodeOrToken<&'a GreenNode, &'a GreenToken>;
[src]
Notable traits for Children<'a>
impl<'a> Iterator for Children<'a> type Item = NodeOrToken<&'a GreenNode, &'a GreenToken>;
Children of this node.
pub fn ptr(&self) -> *const c_void
[src]
Trait Implementations
impl Clone for GreenNode
[src]
impl Debug for GreenNode
[src]
impl Eq for GreenNode
[src]
impl<'a> From<&'a GreenNode> for NodeOrToken<&'a GreenNode, &'a GreenToken>
[src]
fn from(node: &'a GreenNode) -> NodeOrToken<&'a GreenNode, &'a GreenToken>
[src]
impl From<GreenNode> for NodeOrToken<GreenNode, GreenToken>
[src]
fn from(node: GreenNode) -> NodeOrToken<GreenNode, GreenToken>
[src]
impl Hash for GreenNode
[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<GreenNode> for GreenNode
[src]
impl StructuralEq for GreenNode
[src]
impl StructuralPartialEq for GreenNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for GreenNode
impl Send for GreenNode
impl Sync for GreenNode
impl Unpin for GreenNode
impl UnwindSafe for GreenNode
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, 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>,