pub struct ParseState {
pub input: String,
pub position: usize,
pub stack: Vec<JsonContext>,
pub output: String,
}Fields§
§input: String§position: usize§stack: Vec<JsonContext>§output: StringImplementations§
Source§impl ParseState
impl ParseState
pub fn new(input: String) -> Self
pub fn current_char(&self) -> Option<char>
pub fn peek_chars(&self, count: usize) -> String
pub fn advance(&mut self, count: usize) -> String
pub fn remaining(&self) -> &str
pub fn is_sq_key_or_value(&self) -> bool
pub fn is_key_or_value(&self) -> bool
pub fn is_dq_key_or_value(&self) -> bool
pub fn is_value(&self) -> bool
pub fn is_prop(&self) -> bool
pub fn is_finished(&self) -> bool
pub fn current_context(&self) -> &JsonContext
pub fn push_context(&mut self, context: JsonContext)
pub fn pop_context(&mut self) -> Option<JsonContext>
Trait Implementations§
Source§impl Clone for ParseState
impl Clone for ParseState
Source§fn clone(&self) -> ParseState
fn clone(&self) -> ParseState
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 moreAuto 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