pub struct CstData { /* private fields */ }Available on crate feature
parser only.Implementations§
Source§impl CstData
impl CstData
pub fn children(&self, node_ref: NodeRef) -> CstChildren<'_> ⓘ
pub fn get(&self, node_ref: NodeRef) -> Node
pub fn span(&self, node_ref: NodeRef) -> Span
pub fn match_token( &self, node_ref: NodeRef, matched_token: Token, ) -> Option<Span>
pub fn match_rule(&self, node_ref: NodeRef, matched_rule: Rule) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for CstData
impl Freeze for CstData
impl RefUnwindSafe for CstData
impl Send for CstData
impl Sync for CstData
impl Unpin for CstData
impl UnsafeUnpin for CstData
impl UnwindSafe for CstData
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more