[][src]Struct artichoke_backend::module::Spec

pub struct Spec { /* fields omitted */ }


impl Spec[src]

pub fn new<T>(
    interp: &mut Artichoke,
    name: T,
    enclosing_scope: Option<EnclosingRubyScope>
) -> Result<Self, Error> where
    T: Into<Cow<'static, str>>, 

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

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

#[must_use]pub fn enclosing_scope(&self) -> Option<&EnclosingRubyScope>[src]

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

#[must_use]pub fn rclass(&self) -> Rclass[src]

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

impl !Send for Spec

impl !Sync for Spec

impl Unpin for Spec

impl UnwindSafe for Spec

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