[][src]Struct artichoke_backend::module::Rclass

pub struct Rclass { /* fields omitted */ }


impl Rclass[src]

#[must_use]pub const fn new(
    sym: u32,
    name: Box<CStr>,
    enclosing_scope: Option<EnclosingRubyScope>
) -> Self

pub unsafe fn resolve(&self, mrb: *mut mrb_state) -> Option<NonNull<RClass>>[src]

Resolve a type's sys::RClass using its enclosing scope and name.


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 Clone for Rclass[src]

impl Debug for Rclass[src]

impl Eq for Rclass[src]

impl PartialEq<Rclass> for Rclass[src]

impl StructuralEq for Rclass[src]

impl StructuralPartialEq for Rclass[src]

Auto Trait Implementations

impl RefUnwindSafe for Rclass[src]

impl Send for Rclass[src]

impl Sync for Rclass[src]

impl Unpin for Rclass[src]

impl UnwindSafe for Rclass[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,