pub(crate) struct ParseState {
root: Table,
trailing: Option<Range<usize>>,
current_table_position: usize,
current_table: Table,
current_is_array: bool,
current_table_path: Vec<Key>,
}
Fields§
§root: Table
§trailing: Option<Range<usize>>
§current_table_position: usize
§current_table: Table
§current_is_array: bool
§current_table_path: Vec<Key>
Implementations§
source§impl ParseState
impl ParseState
pub(crate) fn new() -> Self
pub(crate) fn into_document<S>( self, raw: S, ) -> Result<ImDocument<S>, CustomError>
pub(crate) fn on_ws(&mut self, span: Range<usize>)
pub(crate) fn on_comment(&mut self, span: Range<usize>)
pub(crate) fn on_keyval( &mut self, path: Vec<Key>, (key, value): (Key, Item), ) -> Result<(), CustomError>
pub(crate) fn start_array_table( &mut self, path: Vec<Key>, decor: Decor, span: Range<usize>, ) -> Result<(), CustomError>
pub(crate) fn start_table( &mut self, path: Vec<Key>, decor: Decor, span: Range<usize>, ) -> Result<(), CustomError>
pub(crate) fn finalize_table(&mut self) -> Result<(), CustomError>
pub(crate) fn descend_path<'t>( table: &'t mut Table, path: &[Key], dotted: bool, ) -> Result<&'t mut Table, CustomError>
pub(crate) fn on_std_header( &mut self, path: Vec<Key>, trailing: Range<usize>, span: Range<usize>, ) -> Result<(), CustomError>
pub(crate) fn on_array_header( &mut self, path: Vec<Key>, trailing: Range<usize>, span: Range<usize>, ) -> Result<(), CustomError>
Auto Trait Implementations§
impl Freeze for ParseState
impl RefUnwindSafe for ParseState
impl Send for ParseState
impl Sync for ParseState
impl Unpin for ParseState
impl UnwindSafe for ParseState
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