[−][src]Enum artichoke_backend::types::Ruby
Classes of Ruby types.
Variants
Ruby Array
type.
Ruby TrueClass
and FalseClass
type.
Ruby Class
type.
FFI type for a borrowed C pointer.
FFI type for an owned C pointer.
Ruby Exception
type.
Ruby Fiber
type.
Ruby Fixnum
type.
Fixnum
is a type of Integer
which represents numbers from
[-u64::MAX, us64::MAX]
. Fixnum
s have a special algorithm for
object IDs: 2 * self - 1
.
Ruby Float
type.
Ruby Hash
type.
Similar to a HashMap
, but iterates by insertion order.
Internal type for non-heap allocated structs.
Ruby Module
type.
Ruby nil
singleton type, the only instance of NilClass
.
Ruby Object
type.
This type represents instances of classes defined in the Artichoke VM.
Ruby Proc
type.
Proc
is a callable closure that captures lexical scope. Proc
s can
be arbitrary arity and may or may not enforce this arity when called.
Ruby Range
type.
Similar to a Rust iterator.
Internal type for the singleton class of an object.
Ruby String
type.
In Artichoke, String
s have a limited set of encodings. A String
can
be UTF-8, maybe UTF-8, or binary.
Ruby Symbol
type.
An interned String
. Symbols are never freed by the interpreter.
Unreachable interpreter value. Receiving one of these from the interpreter is a bug.
A special Value
that is a placeholder for collections that own
themselves.
Implementations
impl Ruby
[src]
#[must_use]pub const fn class_name(self) -> &'static str
[src]
Ruby Class
name for VM type.
Trait Implementations
impl Clone for Ruby
[src]
impl Copy for Ruby
[src]
impl Debug for Ruby
[src]
impl Display for Ruby
[src]
impl Eq for Ruby
[src]
impl From<Ruby> for NoBlockGiven
[src]
impl Hash for Ruby
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Ruby
[src]
pub fn cmp(&self, other: &Ruby) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Ruby> for Ruby
[src]
pub fn eq(&self, other: &Ruby) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Ruby> for Ruby
[src]
pub fn partial_cmp(&self, other: &Ruby) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Ruby
[src]
impl StructuralPartialEq for Ruby
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ruby
[src]
impl Send for Ruby
[src]
impl Sync for Ruby
[src]
impl Unpin for Ruby
[src]
impl UnwindSafe for Ruby
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,