pub fn protect(&mut self, value: Value) -> Value {
        unsafe {
            let value = value.inner();
            let _ = self.with_ffi_boundary(|mrb| sys::mrb_gc_protect(mrb, value));
        }
        value
    }
/// Prevent the given value from being garbage collected.
///
/// Calls [`sys::mrb_gc_protect`] on this value which adds it to the GC
/// arena. This object will remain in the arena until [`ArenaIndex::restore`]
/// restores the arena to an index before this call to protect.
///
/// [`ArenaIndex::restore`]: crate::gc::arena::ArenaIndex::restore
Prevent the given value from being garbage collected.
Calls [`sys::mrb_gc_protect`] on this value which adds it to the GC
arena. This object will remain in the arena until [`ArenaIndex::restore`]
restores the arena to an index before this call to protect.


Prevent the given value from being garbage collected . Calls [ ` sys :: mrb_gc_protect ` ] on this value which adds it to the GC arena . This object will remain in the arena until [ ` ArenaIndex :: restore ` ] restores the arena to an index before this call to protect .
pub fn protect(&mut self, value: Value) -> Value {
        unsafe {
            let value = value.inner();
            let _ = self.with_ffi_boundary(|mrb| sys::mrb_gc_protect(mrb, value));
        }
        value
    }
pub fn protect ( & mut self , value : Value ) -> Value { unsafe { let value = value . inner ( ) ; let _ = self . with_ffi_boundary ( | mrb | sys :: mrb_gc_protect ( mrb , value ) ) ; } value }
Prevent the given value from being garbage collected.
Prevent the given value from being garbage collected .
&mut self
value
Value