artichoke_backend::sys

Struct mrb_state

Source
#[repr(C)]
pub struct mrb_state {
Show 39 fields pub jmp: *mut mrb_jmpbuf, pub allocf: mrb_allocf, pub allocf_ud: *mut c_void, pub c: *mut mrb_context, pub root_c: *mut mrb_context, pub globals: *mut iv_tbl, pub exc: *mut RObject, pub top_self: *mut RObject, pub object_class: *mut RClass, pub class_class: *mut RClass, pub module_class: *mut RClass, pub proc_class: *mut RClass, pub string_class: *mut RClass, pub array_class: *mut RClass, pub hash_class: *mut RClass, pub range_class: *mut RClass, pub float_class: *mut RClass, pub integer_class: *mut RClass, pub true_class: *mut RClass, pub false_class: *mut RClass, pub nil_class: *mut RClass, pub symbol_class: *mut RClass, pub kernel_module: *mut RClass, pub gc: mrb_gc, pub cache: [mrb_cache_entry; 256], pub symidx: mrb_sym, pub symtbl: *mut *const c_char, pub symlink: *mut u8, pub symflags: *mut u8, pub symhash: [mrb_sym; 256], pub symcapa: usize, pub symbuf: [c_char; 8], pub eException_class: *mut RClass, pub eStandardError_class: *mut RClass, pub nomem_err: *mut RObject, pub stack_err: *mut RObject, pub ud: *mut c_void, pub atexit_stack: *mut mrb_atexit_func, pub atexit_stack_len: u16,
}

Fields§

§jmp: *mut mrb_jmpbuf§allocf: mrb_allocf§allocf_ud: *mut c_void§c: *mut mrb_context§root_c: *mut mrb_context§globals: *mut iv_tbl§exc: *mut RObject§top_self: *mut RObject§object_class: *mut RClass§class_class: *mut RClass§module_class: *mut RClass§proc_class: *mut RClass§string_class: *mut RClass§array_class: *mut RClass§hash_class: *mut RClass§range_class: *mut RClass§float_class: *mut RClass§integer_class: *mut RClass§true_class: *mut RClass§false_class: *mut RClass§nil_class: *mut RClass§symbol_class: *mut RClass§kernel_module: *mut RClass§gc: mrb_gc§cache: [mrb_cache_entry; 256]§symidx: mrb_sym§symtbl: *mut *const c_char§symlink: *mut u8§symflags: *mut u8§symhash: [mrb_sym; 256]§symcapa: usize§symbuf: [c_char; 8]§eException_class: *mut RClass§eStandardError_class: *mut RClass§nomem_err: *mut RObject§stack_err: *mut RObject§ud: *mut c_void§atexit_stack: *mut mrb_atexit_func§atexit_stack_len: u16

Trait Implementations§

Source§

impl Clone for mrb_state

Source§

fn clone(&self) -> mrb_state

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for mrb_state

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for mrb_state

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.