[][src]Struct mruby_sys::mrb_parser_state

#[repr(C)]
pub struct mrb_parser_state {
    pub mrb: *mut mrb_state,
    pub pool: *mut mrb_pool,
    pub cells: *mut mrb_ast_node,
    pub s: *const c_char,
    pub send: *const c_char,
    pub cxt: *mut mrbc_context,
    pub filename_sym: mrb_sym,
    pub lineno: c_int,
    pub column: c_int,
    pub lstate: mrb_lex_state_enum,
    pub lex_strterm: *mut mrb_ast_node,
    pub cond_stack: c_uint,
    pub cmdarg_stack: c_uint,
    pub paren_nest: c_int,
    pub lpar_beg: c_int,
    pub in_def: c_int,
    pub in_single: c_int,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub locals: *mut mrb_ast_node,
    pub pb: *mut mrb_ast_node,
    pub tokbuf: *mut c_char,
    pub buf: [c_char; 256],
    pub tidx: c_int,
    pub tsiz: c_int,
    pub all_heredocs: *mut mrb_ast_node,
    pub heredocs_from_nextline: *mut mrb_ast_node,
    pub parsing_heredoc: *mut mrb_ast_node,
    pub lex_strterm_before_heredoc: *mut mrb_ast_node,
    pub ylval: *mut c_void,
    pub nerr: usize,
    pub nwarn: usize,
    pub tree: *mut mrb_ast_node,
    pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub error_buffer: [mrb_parser_message; 10],
    pub warn_buffer: [mrb_parser_message; 10],
    pub filename_table: *mut mrb_sym,
    pub filename_table_length: u16,
    pub current_filename_index: u16,
    pub jmp: *mut mrb_jmpbuf,
}

Fields

mrb: *mut mrb_statepool: *mut mrb_poolcells: *mut mrb_ast_nodes: *const c_charsend: *const c_charcxt: *mut mrbc_contextfilename_sym: mrb_symlineno: c_intcolumn: c_intlstate: mrb_lex_state_enumlex_strterm: *mut mrb_ast_nodecond_stack: c_uintcmdarg_stack: c_uintparen_nest: c_intlpar_beg: c_intin_def: c_intin_single: c_int_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>locals: *mut mrb_ast_nodepb: *mut mrb_ast_nodetokbuf: *mut c_charbuf: [c_char; 256]tidx: c_inttsiz: c_intall_heredocs: *mut mrb_ast_nodeheredocs_from_nextline: *mut mrb_ast_nodeparsing_heredoc: *mut mrb_ast_nodelex_strterm_before_heredoc: *mut mrb_ast_nodeylval: *mut c_voidnerr: usizenwarn: usizetree: *mut mrb_ast_node_bitfield_2: __BindgenBitfieldUnit<[u8; 1], u8>error_buffer: [mrb_parser_message; 10]warn_buffer: [mrb_parser_message; 10]filename_table: *mut mrb_symfilename_table_length: u16current_filename_index: u16jmp: *mut mrb_jmpbuf

Methods

impl mrb_parser_state[src]

pub fn cmd_start(&self) -> mrb_bool[src]

pub fn set_cmd_start(&mut self, val: mrb_bool)[src]

pub fn new_bitfield_1(cmd_start: mrb_bool) -> __BindgenBitfieldUnit<[u8; 1], u8>[src]

pub fn no_optimize(&self) -> mrb_bool[src]

pub fn set_no_optimize(&mut self, val: mrb_bool)[src]

pub fn on_eval(&self) -> mrb_bool[src]

pub fn set_on_eval(&mut self, val: mrb_bool)[src]

pub fn capture_errors(&self) -> mrb_bool[src]

pub fn set_capture_errors(&mut self, val: mrb_bool)[src]

pub fn new_bitfield_2(
    no_optimize: mrb_bool,
    on_eval: mrb_bool,
    capture_errors: mrb_bool
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for mrb_parser_state[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for mrb_parser_state[src]

Auto Trait Implementations

impl !Send for mrb_parser_state

impl Unpin for mrb_parser_state

impl !Sync for mrb_parser_state

impl UnwindSafe for mrb_parser_state

impl RefUnwindSafe for mrb_parser_state

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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