Struct artichoke_backend::value::Value[][src]

pub struct Value(_);

Boxed Ruby value in the Artichoke interpreter.

Implementations

impl Value[src]

#[must_use]
pub fn new() -> Self
[src]

Create a new, empty Ruby value.

Alias for Value::default.

#[must_use]
pub fn nil() -> Self
[src]

Create a nil Ruby Value.

#[must_use]
pub const fn inner(&self) -> mrb_value
[src]

The sys::mrb_value that this Value wraps.

#[must_use]
pub fn is_unreachable(&self) -> bool
[src]

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.

#[must_use]
pub fn is_dead(&self, interp: &mut Artichoke) -> bool
[src]

Return whether this object is unreachable by any GC roots.

pub fn is_range(
    &self,
    interp: &mut Artichoke,
    len: i64
) -> Result<Option<Range>, Error>
[src]

Trait Implementations

impl Clone for Value[src]

fn clone(&self) -> Value[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Convert<Integer, Value> for Artichoke[src]

fn convert(&self, from: Integer) -> Value[src]

Performs the infallible conversion.

impl Convert<Option<Value>, Value> for Artichoke[src]

fn convert(&self, value: Option<Value>) -> Value[src]

Performs the infallible conversion.

impl Convert<Option<bool>, Value> for Artichoke[src]

fn convert(&self, value: Option<bool>) -> Value[src]

Performs the infallible conversion.

impl Convert<Option<i64>, Value> for Artichoke[src]

fn convert(&self, value: Option<i64>) -> Value[src]

Performs the infallible conversion.

impl Convert<Value, Option<Value>> for Artichoke[src]

fn convert(&self, value: Value) -> Option<Value>[src]

Performs the infallible conversion.

impl Convert<Value, Value> for Artichoke[src]

fn convert(&self, value: Value) -> Value[src]

Performs the infallible conversion.

impl Convert<bool, Value> for Artichoke[src]

fn convert(&self, value: bool) -> Value[src]

Performs the infallible conversion.

impl Convert<i16, Value> for Artichoke[src]

fn convert(&self, value: i16) -> Value[src]

Performs the infallible conversion.

impl Convert<i32, Value> for Artichoke[src]

fn convert(&self, value: i32) -> Value[src]

Performs the infallible conversion.

impl Convert<i64, Value> for Artichoke[src]

fn convert(&self, value: i64) -> Value[src]

Performs the infallible conversion.

impl Convert<i8, Value> for Artichoke[src]

fn convert(&self, value: i8) -> Value[src]

Performs the infallible conversion.

impl Convert<u16, Value> for Artichoke[src]

fn convert(&self, value: u16) -> Value[src]

Performs the infallible conversion.

impl Convert<u32, Value> for Artichoke[src]

fn convert(&self, value: u32) -> Value[src]

Performs the infallible conversion.

impl Convert<u8, Value> for Artichoke[src]

fn convert(&self, value: u8) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<&'_ [u8], Value> for Artichoke[src]

fn convert_mut(&mut self, value: &[u8]) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<&'_ str, Value> for Artichoke[src]

fn convert_mut(&mut self, value: &str) -> Value[src]

Performs the infallible conversion.

impl<'a> ConvertMut<Cow<'a, [u8]>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Cow<'a, [u8]>) -> Value[src]

Performs the infallible conversion.

impl<'a> ConvertMut<Cow<'a, str>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Cow<'a, str>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Float, Value> for Artichoke[src]

fn convert_mut(&mut self, from: Float) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: HashMap<Vec<u8>, Vec<u8>>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Option<&'_ [u8]>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Option<&[u8]>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Option<&'_ str>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Option<&str>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Option<HashMap<Vec<u8, Global>, Option<Vec<u8, Global>>, RandomState>>, Value> for Artichoke[src]

fn convert_mut(
    &mut self,
    value: Option<HashMap<Vec<u8>, Option<Vec<u8>>>>
) -> Value
[src]

Performs the infallible conversion.

impl ConvertMut<Option<String>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Option<String>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Option<Vec<u8, Global>>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Option<Vec<u8>>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Outcome, Value> for Artichoke[src]

fn convert_mut(&mut self, from: Outcome) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Rand, Value> for Artichoke[src]

fn convert_mut(&mut self, from: Rand) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Rand, Value> for Artichoke[src]

fn convert_mut(&mut self, from: Rand) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<String, Value> for Artichoke[src]

fn convert_mut(&mut self, value: String) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Value, Options> for Artichoke[src]

fn convert_mut(&mut self, value: Value) -> Options[src]

Performs the infallible conversion.

impl ConvertMut<Value, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Value) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Vec<(Value, Value), Global>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Vec<(Value, Value)>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<Vec<u8, Global>, Value> for Artichoke[src]

fn convert_mut(&mut self, value: Vec<u8>) -> Value[src]

Performs the infallible conversion.

impl ConvertMut<f64, Value> for Artichoke[src]

fn convert_mut(&mut self, value: f64) -> Value[src]

Performs the infallible conversion.

impl Debug for Value[src]

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

Formats the value using the given formatter. Read more

impl Default for Value[src]

fn default() -> Value[src]

Returns the “default value” for a type. Read more

impl Extend<Value> for Array[src]

fn extend<T>(&mut self, iter: T) where
    T: IntoIterator<Item = Value>, 
[src]

Extends a collection with the contents of an iterator. Read more

fn extend_one(&mut self, item: A)[src]

🔬 This is a nightly-only experimental API. (extend_one)

Extends a collection with exactly one element.

fn extend_reserve(&mut self, additional: usize)[src]

🔬 This is a nightly-only experimental API. (extend_one)

Reserves capacity in a collection for the given number of additional elements. Read more

impl From<Option<Value>> for Value[src]

fn from(value: Option<Value>) -> Self[src]

Performs the conversion.

impl From<Option<mrb_value>> for Value[src]

fn from(value: Option<mrb_value>) -> Self[src]

Performs the conversion.

impl From<Value> for NoBlockGiven[src]

fn from(value: Value) -> Self[src]

Performs the conversion.

impl From<Value> for mrb_value[src]

fn from(value: Value) -> Self[src]

Extract the inner sys::mrb_value from this Value.

impl From<mrb_value> for Value[src]

fn from(value: mrb_value) -> Self[src]

Construct a new Value from a sys::mrb_value.

impl FromIterator<Value> for Array[src]

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator<Item = Value>, 
[src]

Creates a value from an iterator. Read more

impl PartialEq<Value> for Value[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl TryConvert<Value, Float> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<Float, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, Integer> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<Integer, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, Option<bool>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<Option<bool>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, Option<i64>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<Option<i64>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, bool> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<bool, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, f64> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<f64, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, i64> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<i64, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, u32> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<u32, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<Value, usize> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: Value) -> Result<usize, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<isize, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: isize) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<u64, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: u64) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvert<usize, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert(&self, value: usize) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [&'_ [u8]], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &[&[u8]]) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [&'_ str], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &[&str]) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [Option<&'_ [u8]>], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: &[Option<&[u8]>]
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [Option<&'_ str>], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: &[Option<&str>]
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [Option<Value>], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: &[Option<Value>]
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [Option<Vec<u8, Global>>], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: &[Option<Vec<u8>>]
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [String], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &[String]) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [Value], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &[Value]) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [Vec<u8, Global>], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &[Vec<u8>]) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ [i64], Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &[i64]) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<&'_ OsStr, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: &OsStr) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<&'a mut Value, CaptureExtract<'a>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: &'a mut Value
) -> Result<CaptureExtract<'a>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<&'a mut Value, IntegerString<'a>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: &'a mut Value
) -> Result<IntegerString<'a>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<CaptureMatch, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: CaptureMatch) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Cow<'a, OsStr>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Cow<'a, OsStr>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<OsString, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: OsString) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, &'a [u8]> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<&'a [u8], Self::Error>[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, &'a str> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<&'a str, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Encoding> for Artichoke[src]

type Error = InvalidEncodingError

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Encoding, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Max> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, max: Value) -> Result<Max, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Max> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, max: Value) -> Result<Max, Self::Error>[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, Option<&'a [u8]>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<&'a [u8]>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, Option<&'a str>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<&'a str>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Option<String>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<String>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Option<Vec<u8, Global>>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<Vec<u8>>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Seed> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Seed, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, String> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<String, Self::Error>[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, Vec<&'a [u8], Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<&'a [u8]>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, Vec<&'a str, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Vec<&'a str>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<(Value, Value), Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<(Value, Value)>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, Vec<Option<&'a [u8]>, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<&'a [u8]>>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl<'a> TryConvertMut<Value, Vec<Option<&'a str>, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<&'a str>>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<Option<String>, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<String>>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<Option<Vec<u8, Global>>, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<Vec<u8>>>, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<String, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Vec<String>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<Value, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Vec<Value>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<Vec<u8, Global>, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Vec<Vec<u8>>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<i64, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Vec<i64>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Value, Vec<u8, Global>> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Value) -> Result<Vec<u8>, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<&'_ [u8], Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Vec<&[u8]>) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<&'_ str, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Vec<&str>) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<(Vec<u8>, Vec<i64>)>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Option<&'_ [u8]>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<Option<&[u8]>>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Option<&'_ str>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<Option<&str>>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Option<Vec<u8, Global>>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<Option<Vec<u8>>>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<String, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Vec<String>) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Value, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Vec<Value>) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Vec<Option<&'_ [u8]>, Global>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<Vec<Option<&[u8]>>>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Vec<Option<&'_ str>, Global>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<Vec<Option<&str>>>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(
    &mut self,
    value: Vec<Vec<Option<Vec<u8>>>>
) -> Result<Value, Self::Error>
[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<Vec<u8, Global>, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Vec<Vec<u8>>) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl TryConvertMut<Vec<i64, Global>, Value> for Artichoke[src]

type Error = Error

Error type for failed conversions.

fn try_convert_mut(&mut self, value: Vec<i64>) -> Result<Value, Self::Error>[src]

Performs the fallible conversion. Read more

impl Value for Value[src]

type Artichoke = Artichoke

Concrete type for Artichoke interpreter.

type Arg = Self

Concrete type for arguments passed to funcall.

type Value = Self

Concrete type for results from funcall.

type Block = Self

Concrete type for blocks passed to funcall.

type Error = Error

Concrete error type for funcall errors.

fn funcall(
    &self,
    interp: &mut Self::Artichoke,
    func: &str,
    args: &[Self::Arg],
    block: Option<Self::Block>
) -> Result<Self::Value, Self::Error>
[src]

Call a method on this Value with arguments and an optional block. Read more

fn freeze(&mut self, interp: &mut Self::Artichoke) -> Result<(), Self::Error>[src]

Call #freeze on this Value. Read more

fn is_frozen(&self, interp: &mut Self::Artichoke) -> bool[src]

Call #frozen? on this Value.

fn inspect(&self, interp: &mut Self::Artichoke) -> Vec<u8>[src]

Call #inspect on this Value. Read more

fn is_nil(&self) -> bool[src]

Whether self is nil

fn respond_to(
    &self,
    interp: &mut Self::Artichoke,
    method: &str
) -> Result<bool, Self::Error>
[src]

Whether self responds to a method. Read more

fn to_s(&self, interp: &mut Self::Artichoke) -> Vec<u8>[src]

Call #to_s on this Value. Read more

fn ruby_type(&self) -> Ruby[src]

Return this values Rust-mapped type tag.

fn try_into<T>(self, interp: &Self::Artichoke) -> Result<T, Self::Error> where
    Self::Artichoke: TryConvert<Self, T>,
    <Self::Artichoke as TryConvert<Self, T>>::Error == Self::Error
[src]

Consume self and try to convert self to type T using a TryConvert conversion. Read more

fn try_into_mut<T>(self, interp: &mut Self::Artichoke) -> Result<T, Self::Error> where
    Self::Artichoke: TryConvertMut<Self, T>,
    <Self::Artichoke as TryConvertMut<Self, T>>::Error == Self::Error
[src]

Consume self and try to convert self to type T using a TryConvertMut conversion. Read more

impl Copy for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

pub fn vzip(self) -> V[src]