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

Fields§

§cur: char§tok: DeRonTok§strbuf: String§numbuf: String§identbuf: String§line: usize§col: usize

Implementations§

source§

impl DeRonState

source

pub fn next(&mut self, i: &mut Chars<'_>)

source

pub fn err_exp(&self, name: &str) -> DeRonErr

source

pub fn err_nf(&self, name: &str) -> DeRonErr

source

pub fn err_enum(&self, name: &str) -> DeRonErr

source

pub fn err_token(&self, what: &str) -> DeRonErr

source

pub fn err_range(&self, what: &str) -> DeRonErr

source

pub fn err_type(&self, what: &str) -> DeRonErr

source

pub fn err_parse(&self, what: &str) -> DeRonErr

source

pub fn eat_comma_paren(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn eat_comma_block(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn eat_comma_curly(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn colon(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn ident(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn next_colon(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn next_ident(&mut self) -> Option<()>

source

pub fn paren_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn paren_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn block_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn block_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn curly_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn curly_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

source

pub fn u64_range(&mut self, max: u64) -> Result<u64, DeRonErr>

source

pub fn i64_range(&mut self, min: i64, max: i64) -> Result<i64, DeRonErr>

source

pub fn as_f64(&mut self) -> Result<f64, DeRonErr>

source

pub fn as_bool(&mut self) -> Result<bool, DeRonErr>

source

pub fn as_string(&mut self) -> Result<String, DeRonErr>

source

pub fn next_tok(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>

Trait Implementations§

source§

impl Default for DeRonState

source§

fn default() -> DeRonState

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.