pub struct ParserContext {
pub current_span: Range<usize>,
pub current_token: Option<Token>,
pub current_document: Option<Document>,
pub current_option_item: Option<String>,
pub current_comments: Option<String>,
pub current_option_set: OptionSet,
pub current_field_name: Option<String>,
}
Fields§
§current_span: Range<usize>
§current_token: Option<Token>
§current_document: Option<Document>
§current_option_item: Option<String>
§current_comments: Option<String>
§current_option_set: OptionSet
§current_field_name: Option<String>
Implementations§
Source§impl ParserContext
impl ParserContext
pub fn new() -> ParserContext
pub fn set_current_token(&mut self, token: Token)
pub fn set_current_span(&mut self, span: Range<usize>)
pub fn set_current_document(&mut self, document: Document)
pub fn set_current_option_item(&mut self, option_item: String)
pub fn set_current_comments(&mut self, comments: String)
pub fn set_current_option_set(&mut self, option_set: OptionSet)
pub fn set_current_field_name(&mut self, field_name: String)
pub fn reset_current_option_item(&mut self)
pub fn reset_current_option_set(&mut self)
pub fn reset_current_field_name(&mut self)
pub fn reset_current_comments(&mut self)
pub fn reset_current_document(&mut self)
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for ParserContext
impl Clone for ParserContext
Source§fn clone(&self) -> ParserContext
fn clone(&self) -> ParserContext
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ParserContext
impl RefUnwindSafe for ParserContext
impl Send for ParserContext
impl Sync for ParserContext
impl Unpin for ParserContext
impl UnwindSafe for ParserContext
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