[][src]Struct mruby_sys::mrbc_context

#[repr(C)]
pub struct mrbc_context {
    pub syms: *mut mrb_sym,
    pub slen: c_int,
    pub filename: *mut c_char,
    pub lineno: c_short,
    pub partial_hook: Option<unsafe extern "C" fn(arg1: *mut mrb_parser_state) -> c_int>,
    pub partial_data: *mut c_void,
    pub target_class: *mut RClass,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub parser_nerr: usize,
}

Fields

syms: *mut mrb_symslen: c_intfilename: *mut c_charlineno: c_shortpartial_hook: Option<unsafe extern "C" fn(arg1: *mut mrb_parser_state) -> c_int>partial_data: *mut c_voidtarget_class: *mut RClass_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>parser_nerr: usize

Methods

impl mrbc_context[src]

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

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

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

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

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

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

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

pub fn set_keep_lv(&mut self, val: mrb_bool)[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 new_bitfield_1(
    capture_errors: mrb_bool,
    dump_result: mrb_bool,
    no_exec: mrb_bool,
    keep_lv: mrb_bool,
    no_optimize: mrb_bool,
    on_eval: mrb_bool
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for mrbc_context[src]

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

Performs copy-assignment from source. Read more

impl Copy for mrbc_context[src]

impl Debug for mrbc_context[src]

Auto Trait Implementations

impl !Send for mrbc_context

impl Unpin for mrbc_context

impl !Sync for mrbc_context

impl UnwindSafe for mrbc_context

impl RefUnwindSafe for mrbc_context

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]