pub struct Spec { /* private fields */ }
Implementations§
Source§impl Spec
impl Spec
pub fn new<T>( name: T, name_cstr: &'static CStr, enclosing_scope: Option<EnclosingRubyScope>, free: Option<Free>, ) -> Result<Self, ConstantNameError>
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 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