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

pub struct Rclass { /* fields omitted */ }

Implementations

impl Rclass[src]

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

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.

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 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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]