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

pub struct Spec { /* fields omitted */ }


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>>, 

#[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(
    interp: &mut Artichoke,
    into: &mut RClass
) -> Result<(), NotDefinedError>

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


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

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>,