pub struct ParseContext {
pub current_path: PathBuf,
pub include_paths: RefCell<Paths>,
pub common_context: CommonContext,
pub segments: Rc<RefCell<Vec<Rc<RefCell<Segment>>>>>,
pub macros: Rc<Macro>,
pub messages: Rc<RefCell<Vec<String>>>,
}Fields§
§current_path: PathBuf§include_paths: RefCell<Paths>§common_context: CommonContext§segments: Rc<RefCell<Vec<Rc<RefCell<Segment>>>>>§macros: Rc<Macro>§messages: Rc<RefCell<Vec<String>>>Implementations§
Source§impl ParseContext
impl ParseContext
pub fn new( current_path: PathBuf, include_paths: RefCell<Paths>, common_context: CommonContext, ) -> Self
pub fn add_segment(&self, segment: Segment)
pub fn last_segment(&self) -> Option<Rc<RefCell<Segment>>>
pub fn push_to_last(&self, item: (CodePoint, Item))
pub fn as_parse_result(&self) -> ParseResult
Trait Implementations§
Source§impl Clone for ParseContext
impl Clone for ParseContext
Source§fn clone(&self) -> ParseContext
fn clone(&self) -> ParseContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseContext
impl Debug for ParseContext
Source§impl PartialEq for ParseContext
impl PartialEq for ParseContext
impl Eq for ParseContext
impl StructuralPartialEq for ParseContext
Auto Trait Implementations§
impl !Freeze for ParseContext
impl !RefUnwindSafe for ParseContext
impl !Send for ParseContext
impl !Sync for ParseContext
impl Unpin for ParseContext
impl !UnwindSafe for ParseContext
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