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
impl DeRonState
pub fn next(&mut self, i: &mut Chars<'_>)
pub fn err_exp(&self, name: &str) -> DeRonErr
pub fn err_nf(&self, name: &str) -> DeRonErr
pub fn err_enum(&self, name: &str) -> DeRonErr
pub fn err_token(&self, what: &str) -> DeRonErr
pub fn err_range(&self, what: &str) -> DeRonErr
pub fn err_type(&self, what: &str) -> DeRonErr
pub fn err_parse(&self, what: &str) -> DeRonErr
pub fn eat_comma_paren(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn eat_comma_block(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn eat_comma_curly(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn colon(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn ident(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn next_colon(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn next_ident(&mut self) -> Option<()>
pub fn paren_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn paren_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn block_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn block_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn curly_open(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn curly_close(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
pub fn u64_range(&mut self, max: u64) -> Result<u64, DeRonErr>
pub fn i64_range(&mut self, min: i64, max: i64) -> Result<i64, DeRonErr>
pub fn as_f64(&mut self) -> Result<f64, DeRonErr>
pub fn as_bool(&mut self) -> Result<bool, DeRonErr>
pub fn as_string(&mut self) -> Result<String, DeRonErr>
pub fn next_tok(&mut self, i: &mut Chars<'_>) -> Result<(), DeRonErr>
Trait Implementations§
Source§impl Default for DeRonState
impl Default for DeRonState
Source§fn default() -> DeRonState
fn default() -> DeRonState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeRonState
impl RefUnwindSafe for DeRonState
impl Send for DeRonState
impl Sync for DeRonState
impl Unpin for DeRonState
impl UnwindSafe for DeRonState
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