[][src]Struct nanoserde::DeJsonState

pub struct DeJsonState {
    pub cur: char,
    pub tok: DeJsonTok,
    pub strbuf: String,
    pub numbuf: String,
    pub identbuf: String,
    pub line: usize,
    pub col: usize,
}

Fields

cur: chartok: DeJsonTokstrbuf: Stringnumbuf: Stringidentbuf: Stringline: usizecol: usize

Implementations

impl DeJsonState[src]

pub fn next(&mut self, i: &mut Chars)[src]

pub fn err_exp(&self, name: &str) -> DeJsonErr[src]

pub fn err_nf(&self, name: &str) -> DeJsonErr[src]

pub fn err_enum(&self, name: &str) -> DeJsonErr[src]

pub fn err_token(&self, what: &str) -> DeJsonErr[src]

pub fn err_range(&self, what: &str) -> DeJsonErr[src]

pub fn err_type(&self, what: &str) -> DeJsonErr[src]

pub fn err_parse(&self, what: &str) -> DeJsonErr[src]

pub fn eat_comma_block(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn whole_field(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn eat_comma_curly(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn colon(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn string(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn next_colon(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn next_str(&mut self) -> Option<()>[src]

pub fn block_open(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn block_close(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn curly_open(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn curly_close(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

pub fn u64_range(&mut self, max: u64) -> Result<u64, DeJsonErr>[src]

pub fn i64_range(&mut self, min: i64, max: i64) -> Result<i64, DeJsonErr>[src]

pub fn as_f64(&mut self) -> Result<f64, DeJsonErr>[src]

pub fn as_bool(&mut self) -> Result<bool, DeJsonErr>[src]

pub fn as_string(&mut self) -> Result<String, DeJsonErr>[src]

pub fn next_tok(&mut self, i: &mut Chars) -> Result<(), DeJsonErr>[src]

Trait Implementations

impl Default for DeJsonState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.