Struct artichoke_backend::class::Spec
source · [−]pub struct Spec { /* private fields */ }
Implementations
sourceimpl Spec
impl Spec
pub fn new<T>(
name: T,
name_cstr: &'static CStr,
enclosing_scope: Option<EnclosingRubyScope>,
free: Option<Free>
) -> Result<Self, ConstantNameError> where
T: Into<Cow<'static, str>>,
pub fn data_type(&self) -> *const mrb_data_type
pub fn name(&self) -> Cow<'static, str>
pub fn name_c_str(&self) -> &'static CStr
pub fn enclosing_scope(&self) -> Option<&EnclosingRubyScope>
pub fn fqname(&self) -> Cow<'_, str>
pub fn rclass(&self) -> Rclass
Trait Implementations
impl Eq for Spec
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more