pub struct Rclass { /* private fields */ }
Implementations§
Source§impl Rclass
impl Rclass
pub const fn new( name: &'static CStr, enclosing_scope: Option<EnclosingRubyScope>, ) -> Self
Sourcepub unsafe fn resolve(&self, mrb: *mut mrb_state) -> Option<NonNull<RClass>>
pub unsafe fn resolve(&self, mrb: *mut mrb_state) -> Option<NonNull<RClass>>
Resolve a type’s sys::RClass
using its enclosing scope and name.
§Safety
This function must be called within an Artichoke::with_ffi_boundary
closure because the FFI APIs called in this function may require access
to the Artichoke State
.
Trait Implementations§
impl Eq for Rclass
impl StructuralPartialEq for Rclass
Auto Trait Implementations§
impl Freeze for Rclass
impl RefUnwindSafe for Rclass
impl Send for Rclass
impl Sync for Rclass
impl Unpin for Rclass
impl UnwindSafe for Rclass
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