#[repr(C)]pub struct RBasic {
pub flags: VALUE,
pub klass: VALUE,
}Expand description
Fields§
§flags: VALUEPer-object flags. Each ruby objects have their own characteristics apart from their classes. For instance whether an object is frozen or not is not controlled by its class. This is where such properties are stored.
@see enum ::ruby_fl_type
§@note This is ::VALUE rather than an enum for alignment purpose. Back
in the 1990s there were no such thing like _Alignas in C.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
klass: VALUEClass of an object. Every object has its class. Also, everything is an object in Ruby. This means classes are also objects. Classes have their own classes, classes of classes have their classes, too … and it recursively continues forever.
§Also note the const qualifier. In ruby an object cannot “change” its
class.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
Trait Implementations§
impl Copy for RBasic
impl Eq for RBasic
impl StructuralPartialEq for RBasic
Auto Trait Implementations§
impl Freeze for RBasic
impl RefUnwindSafe for RBasic
impl Send for RBasic
impl Sync for RBasic
impl Unpin for RBasic
impl UnwindSafe for RBasic
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)