Struct artichoke_backend::module::Rclass
source · [−]pub struct Rclass { /* private fields */ }
Implementations
sourceimpl Rclass
impl Rclass
pub const fn new(
sym: u32,
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 StructuralEq for Rclass
impl StructuralPartialEq for Rclass
Auto Trait Implementations
impl RefUnwindSafe for Rclass
impl Send for Rclass
impl Sync for Rclass
impl Unpin for Rclass
impl UnwindSafe for Rclass
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more