#[repr(C)]pub struct mrbc_context {
pub syms: *mut mrb_sym,
pub slen: c_int,
pub filename: *mut c_char,
pub lineno: u16,
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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub upper: *const RProc,
pub parser_nerr: usize,
}
Fields§
§syms: *mut mrb_sym
§slen: c_int
§filename: *mut c_char
§lineno: u16
§partial_hook: Option<unsafe extern "C" fn(arg1: *mut mrb_parser_state) -> c_int>
§partial_data: *mut c_void
§target_class: *mut RClass
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§upper: *const RProc
§parser_nerr: usize
Implementations§
Source§impl mrbc_context
impl mrbc_context
pub fn capture_errors(&self) -> mrb_bool
pub fn set_capture_errors(&mut self, val: mrb_bool)
pub fn dump_result(&self) -> mrb_bool
pub fn set_dump_result(&mut self, val: mrb_bool)
pub fn no_exec(&self) -> mrb_bool
pub fn set_no_exec(&mut self, val: mrb_bool)
pub fn keep_lv(&self) -> mrb_bool
pub fn set_keep_lv(&mut self, val: mrb_bool)
pub fn no_optimize(&self) -> mrb_bool
pub fn set_no_optimize(&mut self, val: mrb_bool)
pub fn no_ext_ops(&self) -> mrb_bool
pub fn set_no_ext_ops(&mut self, val: mrb_bool)
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, no_ext_ops: mrb_bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for mrbc_context
impl Clone for mrbc_context
Source§fn clone(&self) -> mrbc_context
fn clone(&self) -> mrbc_context
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for mrbc_context
impl Debug for mrbc_context
impl Copy for mrbc_context
Auto Trait Implementations§
impl Freeze for mrbc_context
impl RefUnwindSafe for mrbc_context
impl !Send for mrbc_context
impl !Sync for mrbc_context
impl Unpin for mrbc_context
impl UnwindSafe for mrbc_context
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