pub struct IdentRef<'i, I: IdentTrait> { /* private fields */ }
Implementations§
Source§impl<'i, I: IdentTrait> IdentRef<'i, I>
impl<'i, I: IdentTrait> IdentRef<'i, I>
pub fn ident(&self) -> &'i I
pub fn idx(&self) -> usize
pub fn as_str(&self) -> &'i str
pub fn as_rule(&self) -> I::Rule
pub fn children_count(&self) -> usize
pub fn children(&self) -> IdentIter<'i, I> ⓘ
pub fn inner(&self) -> IdentIter<'i, I> ⓘ
👎Deprecated: Use
children
insteadpub fn into_inner(self) -> IdentIter<'i, I> ⓘ
👎Deprecated: Use
children
insteadTrait Implementations§
Source§impl<'i, I: IdentTrait> AsRef<I> for IdentRef<'i, I>
impl<'i, I: IdentTrait> AsRef<I> for IdentRef<'i, I>
Auto Trait Implementations§
impl<'i, I> Freeze for IdentRef<'i, I>
impl<'i, I> RefUnwindSafe for IdentRef<'i, I>where
I: RefUnwindSafe,
impl<'i, I> Send for IdentRef<'i, I>where
I: Sync,
impl<'i, I> Sync for IdentRef<'i, I>where
I: Sync,
impl<'i, I> Unpin for IdentRef<'i, I>
impl<'i, I> UnwindSafe for IdentRef<'i, I>where
I: RefUnwindSafe,
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