pub struct Spec { /* private fields */ }
Implementations§
Source§impl Spec
impl Spec
pub fn new<T>( interp: &mut Artichoke, name: T, name_cstr: &'static CStr, enclosing_scope: Option<EnclosingRubyScope>, ) -> Result<Self, Error>
pub fn name(&self) -> Cow<'static, str>
pub fn name_c_str(&self) -> &'static CStr
pub fn enclosing_scope(&self) -> Option<&EnclosingRubyScope>
pub fn name_symbol(&self) -> u32
pub fn fqname(&self) -> Cow<'_, str>
pub fn rclass(&self) -> Rclass
Trait Implementations§
impl Eq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more