#[repr(u32)]pub enum ruby_robject_flags {
ROBJECT_EMBED = 8_192,
}Expand description
Variants§
ROBJECT_EMBED = 8_192
This flag has something to do with memory footprint. If the object is “small” enough, ruby tries to be creative to abuse padding bits of struct ::RObject for storing instance variables. This flag denotes that situation.
@warning This bit has to be considered read-only. Setting/clearing this bit without corresponding fix up must cause immediate SEGV. Also, internal structures of an object change dynamically and transparently throughout of its lifetime. Don’t assume it being persistent.
@internal
§3rd parties must not be aware that there even is more than one way to store instance variables. Might better be hidden.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
Trait Implementations§
Source§impl Clone for ruby_robject_flags
impl Clone for ruby_robject_flags
Source§fn clone(&self) -> ruby_robject_flags
fn clone(&self) -> ruby_robject_flags
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ruby_robject_flags
impl Debug for ruby_robject_flags
Source§impl Hash for ruby_robject_flags
impl Hash for ruby_robject_flags
Source§impl PartialEq for ruby_robject_flags
impl PartialEq for ruby_robject_flags
impl Copy for ruby_robject_flags
impl Eq for ruby_robject_flags
impl StructuralPartialEq for ruby_robject_flags
Auto Trait Implementations§
impl Freeze for ruby_robject_flags
impl RefUnwindSafe for ruby_robject_flags
impl Send for ruby_robject_flags
impl Sync for ruby_robject_flags
impl Unpin for ruby_robject_flags
impl UnwindSafe for ruby_robject_flags
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)