Enum rb_sys::bindings::ruby_value_type
source · #[repr(u32)]
pub enum ruby_value_type {
Show 28 variants
RUBY_T_NONE,
RUBY_T_OBJECT,
RUBY_T_CLASS,
RUBY_T_MODULE,
RUBY_T_FLOAT,
RUBY_T_STRING,
RUBY_T_REGEXP,
RUBY_T_ARRAY,
RUBY_T_HASH,
RUBY_T_STRUCT,
RUBY_T_BIGNUM,
RUBY_T_FILE,
RUBY_T_DATA,
RUBY_T_MATCH,
RUBY_T_COMPLEX,
RUBY_T_RATIONAL,
RUBY_T_NIL,
RUBY_T_TRUE,
RUBY_T_FALSE,
RUBY_T_SYMBOL,
RUBY_T_FIXNUM,
RUBY_T_UNDEF,
RUBY_T_IMEMO,
RUBY_T_NODE,
RUBY_T_ICLASS,
RUBY_T_ZOMBIE,
RUBY_T_MOVED,
RUBY_T_MASK,
}Expand description
C-level type of an object.
Variants§
RUBY_T_NONE
< Non-object (sweeped etc.)
RUBY_T_OBJECT
< @see struct ::RObject
RUBY_T_CLASS
< @see struct ::RClass and ::rb_cClass
RUBY_T_MODULE
< @see struct ::RClass and ::rb_cModule
RUBY_T_FLOAT
< @see struct ::RFloat
RUBY_T_STRING
< @see struct ::RString
RUBY_T_REGEXP
< @see struct ::RRegexp
RUBY_T_ARRAY
< @see struct ::RArray
RUBY_T_HASH
< @see struct ::RHash
RUBY_T_STRUCT
< @see struct ::RStruct
RUBY_T_BIGNUM
< @see struct ::RBignum
RUBY_T_FILE
< @see struct ::RFile
RUBY_T_DATA
< @see struct ::RTypedData
RUBY_T_MATCH
< @see struct ::RMatch
RUBY_T_COMPLEX
< @see struct ::RComplex
RUBY_T_RATIONAL
< @see struct ::RRational
RUBY_T_NIL
< @see ::RUBY_Qnil
RUBY_T_TRUE
< @see ::RUBY_Qfalse
RUBY_T_FALSE
< @see ::RUBY_Qtrue
RUBY_T_SYMBOL
< @see struct ::RSymbol
RUBY_T_FIXNUM
< Integers formerly known as Fixnums.
RUBY_T_UNDEF
< @see ::RUBY_Qundef
RUBY_T_IMEMO
< @see struct ::RIMemo
RUBY_T_NODE
< @see struct ::RNode
RUBY_T_ICLASS
< Hidden classes known as IClasses.
RUBY_T_ZOMBIE
< @see struct ::RZombie
RUBY_T_MOVED
< @see struct ::RMoved
RUBY_T_MASK
Trait Implementations§
source§impl Clone for ruby_value_type
impl Clone for ruby_value_type
source§fn clone(&self) -> ruby_value_type
fn clone(&self) -> ruby_value_type
Returns a copy of the value. Read more
1.0.0 · source§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_value_type
impl Debug for ruby_value_type
source§impl Hash for ruby_value_type
impl Hash for ruby_value_type
source§impl PartialEq<ruby_value_type> for ruby_value_type
impl PartialEq<ruby_value_type> for ruby_value_type
source§fn eq(&self, other: &ruby_value_type) -> bool
fn eq(&self, other: &ruby_value_type) -> bool
This method tests for
self and other values to be equal, and is used
by ==.