logo
pub struct Value(_);
Expand description

Boxed Ruby value in the Artichoke interpreter.

Implementations

Create a new, empty Ruby value.

Alias for Value::default.

Create a nil Ruby Value.

Whether a value is an interpreter-only variant not exposed to Ruby.

Some type tags like MRB_TT_UNDEF are internal to the mruby VM and manipulating them with the sys API is unspecified and may result in a segfault.

After extracting a sys::mrb_value from the interpreter, check to see if the value is unreachable a Fatal exception.

See: mruby#4460.

Return whether this object is unreachable by any GC roots.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Performs the infallible conversion.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Extract the inner sys::mrb_value from this Value.

Construct a new Value from a sys::mrb_value.

This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Error type for failed conversions.
Performs the fallible conversion. Read more
Concrete type for Artichoke interpreter.
Concrete type for arguments passed to funcall.
Concrete type for results from funcall.
Concrete type for blocks passed to funcall.
Concrete error type for funcall errors.
Call a method on this Value with arguments and an optional block. Read more
Call #freeze on this Value. Read more
Call #frozen? on this Value.
Call #inspect on this Value. Read more
Whether self is nil
Whether self responds to a method. Read more
Call #to_s on this Value. Read more
Return this values Rust-mapped type tag.
Consume self and try to convert self to type T using a TryConvert conversion. Read more
Consume self and try to convert self to type T using a TryConvertMut conversion. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.