pub struct IdentList<I: IdentTrait> { /* private fields */ }Implementations§
Source§impl<I: IdentTrait> IdentList<I>
impl<I: IdentTrait> IdentList<I>
Sourcepub unsafe fn from_idents(idents: Vec<(I, usize)>) -> Self
pub unsafe fn from_idents(idents: Vec<(I, usize)>) -> Self
This is used by the generated parser to convert its output to an IdentList. You should not ever need to use this.
§Safety
The whole implementation assumes that the arguments of this function are valid. When this method is called by generated code, the input is guaranteed to be valid.
Sourcepub unsafe fn get_unchecked(&self, idx: usize) -> IdentRef<'_, I>
pub unsafe fn get_unchecked(&self, idx: usize) -> IdentRef<'_, I>
§Safety
The caller must ensure that idx is a valid index.
pub fn root(&self) -> IdentRef<'_, I>
Trait Implementations§
Source§impl<I: IdentTrait> Debug for IdentList<I>
impl<I: IdentTrait> Debug for IdentList<I>
Source§impl<'i, I: IdentTrait> IntoIterator for &'i IdentList<I>
impl<'i, I: IdentTrait> IntoIterator for &'i IdentList<I>
Auto Trait Implementations§
impl<I> Freeze for IdentList<I>
impl<I> RefUnwindSafe for IdentList<I>where
I: RefUnwindSafe,
impl<I> Send for IdentList<I>where
I: Send,
impl<I> Sync for IdentList<I>where
I: Sync,
impl<I> Unpin for IdentList<I>where
I: Unpin,
impl<I> UnwindSafe for IdentList<I>where
I: UnwindSafe,
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