[−][src]Struct onig::CaptureTreeNode
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] |
The capture group number for this capture
pub fn pos(&self) -> (usize, usize) | [src] |
The extent of this capture
pub fn len(&self) -> usize | [src] |
The number of child captures this group contains
pub fn is_empty(&self) -> bool | [src] |
Does the node have any child captures?
ⓘImportant traits for CaptureTreeNodeIter<'t>
ⓘImportant traits for CaptureTreeNodeIter<'t>
pub fn children(&self) -> CaptureTreeNodeIter | [src] |
An iterator over thie children of this capture group
Trait Implementations
impl Debug for CaptureTreeNode
[src]
impl Debug for CaptureTreeNode
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] |
Auto Trait Implementations
impl !Send for CaptureTreeNode
impl !Send for CaptureTreeNode
impl !Sync for CaptureTreeNode
impl !Sync for CaptureTreeNode
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |