Struct onig::CaptureTreeNode [−][src]
#[repr(C)]pub struct CaptureTreeNode { /* fields omitted */ }
Capture Tree Node
Represents a single node in the capture tree. Can be queried for information about the given capture and any child-captures that took place.
Methods
impl CaptureTreeNode
[src]
impl CaptureTreeNode
pub fn group(&self) -> usize
[src]
pub fn group(&self) -> usize
The capture group number for this capture
pub fn pos(&self) -> (usize, usize)
[src]
pub fn pos(&self) -> (usize, usize)
The extent of this capture
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
The number of child captures this group contains
ⓘImportant traits for CaptureTreeNodeIter<'t>pub fn children<'t>(&'t self) -> CaptureTreeNodeIter<'t>
[src]
ⓘImportant traits for CaptureTreeNodeIter<'t>
pub fn children<'t>(&'t self) -> CaptureTreeNodeIter<'t>
An iterator over thie children of this capture group
Trait Implementations
impl Debug for CaptureTreeNode
[src]
impl Debug for CaptureTreeNode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Index<usize> for CaptureTreeNode
[src]
impl Index<usize> for CaptureTreeNode
type Output = CaptureTreeNode
The returned type after indexing.
fn index(&self, index: usize) -> &CaptureTreeNode
[src]
fn index(&self, index: usize) -> &CaptureTreeNode
Performs the indexing (container[index]
) operation.
Auto Trait Implementations
impl !Send for CaptureTreeNode
impl !Send for CaptureTreeNode
impl !Sync for CaptureTreeNode
impl !Sync for CaptureTreeNode