Struct ezno_parser::Chain
source · pub struct Chain(_);
Expand description
The current location in the AST
Implementations§
source§impl Chain
impl Chain
pub fn new() -> Self
pub fn new_with_initial(initial: ChainVariable) -> Self
pub fn len(&self) -> usize
pub fn truncate(&mut self, to_size: usize)
sourcepub fn get_chain(&self) -> &[ChainVariable]
pub fn get_chain(&self) -> &[ChainVariable]
TODO remove
pub fn get_module(&self) -> SourceId
Trait Implementations§
source§impl Annexable for Chain
impl Annexable for Chain
type NewItem = ChainVariable
fn push_annex(&mut self, item: Self::NewItem) -> Annex<'_, Self>where Self: Sized,
fn revert_annex(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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