[][src]Struct mruby_sys::mrb_gc

#[repr(C)]
pub struct mrb_gc {
    pub heaps: *mut mrb_heap_page,
    pub sweeps: *mut mrb_heap_page,
    pub free_heaps: *mut mrb_heap_page,
    pub live: usize,
    pub arena: *mut *mut RBasic,
    pub arena_capa: c_int,
    pub arena_idx: c_int,
    pub state: mrb_gc_state,
    pub current_white_part: c_int,
    pub gray_list: *mut RBasic,
    pub atomic_gray_list: *mut RBasic,
    pub live_after_mark: usize,
    pub threshold: usize,
    pub interval_ratio: c_int,
    pub step_ratio: c_int,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub majorgc_old_threshold: usize,
}

Fields

heaps: *mut mrb_heap_pagesweeps: *mut mrb_heap_pagefree_heaps: *mut mrb_heap_pagelive: usizearena: *mut *mut RBasicarena_capa: c_intarena_idx: c_intstate: mrb_gc_statecurrent_white_part: c_intgray_list: *mut RBasicatomic_gray_list: *mut RBasiclive_after_mark: usizethreshold: usizeinterval_ratio: c_intstep_ratio: c_int_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>majorgc_old_threshold: usize

Methods

impl mrb_gc[src]

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

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

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

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

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

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

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

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

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

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

pub fn new_bitfield_1(
    iterating: mrb_bool,
    disabled: mrb_bool,
    full: mrb_bool,
    generational: mrb_bool,
    out_of_memory: mrb_bool
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for mrb_gc[src]

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

Performs copy-assignment from source. Read more

impl Copy for mrb_gc[src]

impl Debug for mrb_gc[src]

Auto Trait Implementations

impl !Send for mrb_gc

impl Unpin for mrb_gc

impl !Sync for mrb_gc

impl UnwindSafe for mrb_gc

impl RefUnwindSafe for mrb_gc

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]