[][src]Struct artichoke_backend::method::Spec

pub struct Spec { /* fields omitted */ }

Implementations

impl Spec[src]

pub fn new<T>(
    method_type: Type,
    method_name: T,
    method: Method,
    args: mrb_aspec
) -> Result<Self, ConstantNameError> where
    T: Into<Cow<'static, str>>, 
[src]

#[must_use]pub const fn method_type(&self) -> &Type[src]

#[must_use]pub fn method(&self) -> Method[src]

#[must_use]pub fn name(&self) -> Cow<'static, str>[src]

#[must_use]pub fn name_c_str(&self) -> &CStr[src]

pub unsafe fn define(
    &self,
    interp: &mut Artichoke,
    into: &mut RClass
) -> Result<(), NotDefinedError>
[src]

Define this method on the class-like pointed to by into.

Safety

This method requires that into is non-null and points to a valid sys::RClass.

This method requires that the sys::mrb_state has a valid top_self object.

Trait Implementations

impl Clone for Spec[src]

impl Debug for Spec[src]

impl Eq for Spec[src]

impl Hash for Spec[src]

impl PartialEq<Spec> for Spec[src]

Auto Trait Implementations

impl RefUnwindSafe for Spec[src]

impl Send for Spec[src]

impl Sync for Spec[src]

impl Unpin for Spec[src]

impl UnwindSafe for Spec[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]