#[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

source§

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)

Performs copy-assignment from source. Read more
source§

impl Debug for ruby_value_type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ruby_value_type

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<ruby_value_type> for ruby_value_type

source§

fn eq(&self, other: &ruby_value_type) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ruby_value_type

source§

impl Eq for ruby_value_type

source§

impl StructuralEq for ruby_value_type

source§

impl StructuralPartialEq for ruby_value_type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.