Struct artichoke::Artichoke [−][src]
Interpreter instance.
Functionality is added to the interpreter via traits, for example, garbage collection or eval.
Fields
mrb: NonNull<mrb_state>
Underlying mruby interpreter.
This is an owned reference to the interpreter via a mutable pointer.
state: Option<Box<State, Global>>
Interpreter state.
This field is an Option
because the State
is moved in and out of the
Artichoke
struct as the call graph crosses between Rust and C and C to
Rust.
Implementations
impl Artichoke
[src]
#[must_use]pub const fn new(
mrb: NonNull<mrb_state>,
state: Box<State, Global>
) -> Artichoke
[src]
mrb: NonNull<mrb_state>,
state: Box<State, Global>
) -> Artichoke
Create a new interpreter from an underlying mrb
and a State
.
pub fn protect(&mut self, value: Value) -> Value
[src]
Prevent the given value from being garbage collected.
Calls sys::mrb_gc_protect
on this value which adds it to the GC
arena. This object will remain in the arena until ArenaIndex::restore
restores the arena to an index before this call to protect.
pub unsafe fn with_ffi_boundary<F, T>(
&mut self,
func: F
) -> Result<T, InterpreterExtractError> where
F: FnOnce(*mut mrb_state) -> T,
[src]
&mut self,
func: F
) -> Result<T, InterpreterExtractError> where
F: FnOnce(*mut mrb_state) -> T,
Execute a a closure by moving the State
into the mrb
instance.
This method prepares this interpreter to cross an FFI boundary. When the
Artichoke implementation calls mruby FFI functions, the State
must be
moved into the sys::mrb_state
userdata pointer.
Safety
This method moves the State
out of this instance into the mrb
instance. During this function’s execution, this instance may be
partially initialized.
This function is only safe to call if the closure only calls FFI
functions that use a raw *mut sys::mrb_state
.
#[must_use]pub unsafe fn into_raw(interp: Artichoke) -> *mut mrb_state
[src]
Consume an interpreter and return the pointer to the underlying
sys::mrb_state
.
This function does not free any interpreter resources. Its intended use is to prepare the interpreter to cross over an FFI boundary.
This is an associated function and must be called as
Artichoke::into_raw(interp)
.
Safety
After calling this function, the caller is responsible for properly
freeing the memory occupied by the interpreter heap. The easiest way to
do this is to call ffi::from_user_data
with the returned pointer and
then call Artichoke::close
.
pub fn close(self)
[src]
Consume an interpreter and free all live objects.
impl Artichoke
[src]
pub fn lookup_symbol_with_trailing_nul(
&self,
symbol: u32
) -> Result<Option<&[u8]>, Error>
[src]
&self,
symbol: u32
) -> Result<Option<&[u8]>, Error>
pub fn intern_bytes_with_trailing_nul<T>(
&mut self,
bytes: T
) -> Result<u32, Error> where
T: Into<Cow<'static, [u8]>>,
[src]
&mut self,
bytes: T
) -> Result<u32, Error> where
T: Into<Cow<'static, [u8]>>,
pub fn check_interned_bytes_with_trailing_nul(
&self,
bytes: &[u8]
) -> Result<Option<u32>, Error>
[src]
&self,
bytes: &[u8]
) -> Result<Option<u32>, Error>
Trait Implementations
impl<'a> AsMut<Artichoke> for Guard<'a>
[src]
impl<'a> AsRef<Artichoke> for Guard<'a>
[src]
impl ClassRegistry for Artichoke
[src]
pub fn def_class<T>(&mut self, spec: Spec) -> Result<(), Error> where
T: Any,
[src]
T: Any,
Create a class definition bound to a Rust type T
.
Class definitions have the same lifetime as the
State
because the class def owns the
mrb_data_type
for the type, which must be long-lived.
pub fn class_spec<T>(&self) -> Result<Option<&Spec>, Error> where
T: Any,
[src]
T: Any,
Retrieve a class definition from the state bound to Rust type T
.
This function returns None
if type T
has not had a class spec
registered for it using ClassRegistry::def_class
.
pub fn class_of<T>(&mut self) -> Result<Option<Value>, Error> where
T: Any,
[src]
T: Any,
pub fn new_instance<T>(
&mut self,
args: &[Value]
) -> Result<Option<Value>, Error> where
T: Any,
[src]
&mut self,
args: &[Value]
) -> Result<Option<Value>, Error> where
T: Any,
pub fn is_class_defined<T>(&self) -> bool where
T: Any,
[src]
T: Any,
impl CoerceToNumeric for Artichoke
[src]
type Value = Value
Concrete type of boxed Ruby value as inputs to coerce functions.
type Float = f64
Concrete float type to coerce values into, e.g. f64
.
type Error = Error
Concrete error type for errors encountered when coercing values.
pub fn coerce_to_float(
&mut self,
value: <Artichoke as CoerceToNumeric>::Value
) -> Result<<Artichoke as CoerceToNumeric>::Float, <Artichoke as CoerceToNumeric>::Error>
[src]
&mut self,
value: <Artichoke as CoerceToNumeric>::Value
) -> Result<<Artichoke as CoerceToNumeric>::Float, <Artichoke as CoerceToNumeric>::Error>
impl Convert<Integer, Value> for Artichoke
[src]
impl Convert<Option<Value>, Value> for Artichoke
[src]
impl Convert<Option<bool>, Value> for Artichoke
[src]
impl Convert<Option<i64>, Value> for Artichoke
[src]
impl Convert<Value, Option<Value>> for Artichoke
[src]
impl Convert<Value, Value> for Artichoke
[src]
impl Convert<bool, Value> for Artichoke
[src]
impl Convert<i16, Value> for Artichoke
[src]
impl Convert<i32, Value> for Artichoke
[src]
impl Convert<i64, Value> for Artichoke
[src]
Converter for Artichoke native integer type.
The Int
type alias must be i64
.
assert_eq!(mem::size_of::<i64>(), mem::size_of::<Int>()); assert_eq!(i64::MIN, Int::MIN); assert_eq!(i64::MAX, Int::MAX); assert_eq!(TypeId::of::<i64>(), TypeId::of::<Int>());
impl Convert<i8, Value> for Artichoke
[src]
impl Convert<u16, Value> for Artichoke
[src]
impl Convert<u32, Value> for Artichoke
[src]
impl Convert<u8, Value> for Artichoke
[src]
impl<'_> ConvertMut<&'_ [u8], Value> for Artichoke
[src]
impl<'_> ConvertMut<&'_ str, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: &str) -> Value
[src]
impl<'a> ConvertMut<Cow<'a, [u8]>, Value> for Artichoke
[src]
impl<'a> ConvertMut<Cow<'a, str>, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: Cow<'a, str>) -> Value
[src]
impl ConvertMut<Float, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, from: Float) -> Value
[src]
impl ConvertMut<HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>, Value> for Artichoke
[src]
pub fn convert_mut(
&mut self,
value: HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>
) -> Value
[src]
&mut self,
value: HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>
) -> Value
impl<'_> ConvertMut<Option<&'_ [u8]>, Value> for Artichoke
[src]
impl<'_> ConvertMut<Option<&'_ str>, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: Option<&str>) -> Value
[src]
impl ConvertMut<Option<HashMap<Vec<u8, Global>, Option<Vec<u8, Global>>, RandomState>>, Value> for Artichoke
[src]
pub fn convert_mut(
&mut self,
value: Option<HashMap<Vec<u8, Global>, Option<Vec<u8, Global>>, RandomState>>
) -> Value
[src]
&mut self,
value: Option<HashMap<Vec<u8, Global>, Option<Vec<u8, Global>>, RandomState>>
) -> Value
impl ConvertMut<Option<String>, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: Option<String>) -> Value
[src]
impl ConvertMut<Option<Vec<u8, Global>>, Value> for Artichoke
[src]
impl ConvertMut<Outcome, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, from: Outcome) -> Value
[src]
impl ConvertMut<Rand, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, from: Rand) -> Value
[src]
impl ConvertMut<Rand, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, from: Rand) -> Value
[src]
impl ConvertMut<String, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: String) -> Value
[src]
impl ConvertMut<Value, Options> for Artichoke
[src]
pub fn convert_mut(&mut self, value: Value) -> Options
[src]
impl ConvertMut<Value, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: Value) -> Value
[src]
impl ConvertMut<Vec<(Value, Value), Global>, Value> for Artichoke
[src]
impl ConvertMut<Vec<u8, Global>, Value> for Artichoke
[src]
impl ConvertMut<f64, Value> for Artichoke
[src]
pub fn convert_mut(&mut self, value: f64) -> Value
[src]
impl Debug for Artichoke
[src]
impl Debug for Artichoke
[src]
type Value = Value
Concrete type for return values from eval.
pub fn inspect_type_name_for_value(
&mut self,
value: <Artichoke as Debug>::Value
) -> &str
[src]
&mut self,
value: <Artichoke as Debug>::Value
) -> &str
pub fn class_name_for_value(
&mut self,
value: <Artichoke as Debug>::Value
) -> &str
[src]
&mut self,
value: <Artichoke as Debug>::Value
) -> &str
impl DefineConstant for Artichoke
[src]
type Value = Value
Concrete type for Ruby values.
type Error = Error
Concrete error type for fallible operations.
pub fn define_global_constant(
&mut self,
constant: &str,
value: <Artichoke as DefineConstant>::Value
) -> Result<(), <Artichoke as DefineConstant>::Error>
[src]
&mut self,
constant: &str,
value: <Artichoke as DefineConstant>::Value
) -> Result<(), <Artichoke as DefineConstant>::Error>
pub fn define_class_constant<T>(
&mut self,
constant: &str,
value: <Artichoke as DefineConstant>::Value
) -> Result<(), <Artichoke as DefineConstant>::Error> where
T: 'static,
[src]
&mut self,
constant: &str,
value: <Artichoke as DefineConstant>::Value
) -> Result<(), <Artichoke as DefineConstant>::Error> where
T: 'static,
pub fn define_module_constant<T>(
&mut self,
constant: &str,
value: <Artichoke as DefineConstant>::Value
) -> Result<(), <Artichoke as DefineConstant>::Error> where
T: 'static,
[src]
&mut self,
constant: &str,
value: <Artichoke as DefineConstant>::Value
) -> Result<(), <Artichoke as DefineConstant>::Error> where
T: 'static,
impl Eval for Artichoke
[src]
type Value = Value
Concrete type for return values from eval.
type Error = Error
Concrete error type for eval functions.
pub fn eval(
&mut self,
code: &[u8]
) -> Result<<Artichoke as Eval>::Value, <Artichoke as Eval>::Error>
[src]
&mut self,
code: &[u8]
) -> Result<<Artichoke as Eval>::Value, <Artichoke as Eval>::Error>
pub fn eval_os_str(
&mut self,
code: &OsStr
) -> Result<<Artichoke as Eval>::Value, <Artichoke as Eval>::Error>
[src]
&mut self,
code: &OsStr
) -> Result<<Artichoke as Eval>::Value, <Artichoke as Eval>::Error>
pub fn eval_file(
&mut self,
file: &Path
) -> Result<<Artichoke as Eval>::Value, <Artichoke as Eval>::Error>
[src]
&mut self,
file: &Path
) -> Result<<Artichoke as Eval>::Value, <Artichoke as Eval>::Error>
impl Globals for Artichoke
[src]
type Value = Value
Concrete value type for global variables.
type Error = Error
Concrete error type for failures manipulating global variables.
pub fn set_global_variable<T>(
&mut self,
name: T,
value: &<Artichoke as Globals>::Value
) -> Result<(), <Artichoke as Globals>::Error> where
T: Into<Cow<'static, [u8]>>,
[src]
&mut self,
name: T,
value: &<Artichoke as Globals>::Value
) -> Result<(), <Artichoke as Globals>::Error> where
T: Into<Cow<'static, [u8]>>,
pub fn unset_global_variable<T>(
&mut self,
name: T
) -> Result<(), <Artichoke as Globals>::Error> where
T: Into<Cow<'static, [u8]>>,
[src]
&mut self,
name: T
) -> Result<(), <Artichoke as Globals>::Error> where
T: Into<Cow<'static, [u8]>>,
Unset global variable pointed to by name
.
Unsetting a global variable removes the name from the global storage
table. Unset globals resolve to nil
in the Ruby VM.
Unsetting a global that is currently unset is a no-op.
Errors
If the name is not a valid global name, an error is returned.
pub fn get_global_variable<T>(
&mut self,
name: T
) -> Result<Option<<Artichoke as Globals>::Value>, <Artichoke as Globals>::Error> where
T: Into<Cow<'static, [u8]>>,
[src]
&mut self,
name: T
) -> Result<Option<<Artichoke as Globals>::Value>, <Artichoke as Globals>::Error> where
T: Into<Cow<'static, [u8]>>,
impl Intern for Artichoke
[src]
type Symbol = u32
Concrete type for symbol identifiers. Read more
type Error = Error
Concrete type for errors returned while interning symbols.
pub const SYMBOL_RANGE_START: <Artichoke as Intern>::Symbol
[src]
pub fn intern_bytes<T>(
&mut self,
bytes: T
) -> Result<<Artichoke as Intern>::Symbol, <Artichoke as Intern>::Error> where
T: Into<Cow<'static, [u8]>>,
[src]
&mut self,
bytes: T
) -> Result<<Artichoke as Intern>::Symbol, <Artichoke as Intern>::Error> where
T: Into<Cow<'static, [u8]>>,
pub fn check_interned_bytes(
&self,
bytes: &[u8]
) -> Result<Option<<Artichoke as Intern>::Symbol>, <Artichoke as Intern>::Error>
[src]
&self,
bytes: &[u8]
) -> Result<Option<<Artichoke as Intern>::Symbol>, <Artichoke as Intern>::Error>
pub fn lookup_symbol(
&self,
symbol: <Artichoke as Intern>::Symbol
) -> Result<Option<&[u8]>, <Artichoke as Intern>::Error>
[src]
&self,
symbol: <Artichoke as Intern>::Symbol
) -> Result<Option<&[u8]>, <Artichoke as Intern>::Error>
pub fn symbol_count(&self) -> usize
[src]
pub fn intern_string<T>(
&mut self,
symbol: T
) -> Result<Self::Symbol, Self::Error> where
T: Into<Cow<'static, str>>,
[src]
&mut self,
symbol: T
) -> Result<Self::Symbol, Self::Error> where
T: Into<Cow<'static, str>>,
pub fn check_interned_string(
&self,
symbol: &str
) -> Result<Option<Self::Symbol>, Self::Error>
[src]
&self,
symbol: &str
) -> Result<Option<Self::Symbol>, Self::Error>
impl Io for Artichoke
[src]
type Error = Error
Concrete error type for errors encountered when reading and writing.
pub fn print<T>(&mut self, message: T) -> Result<(), <Artichoke as Io>::Error> where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
Writes the given bytes to the interpreter stdout stream.
This implementation delegates to the underlying output strategy.
Errors
If the output stream encounters an error, an error is returned.
pub fn puts<T>(&mut self, message: T) -> Result<(), <Artichoke as Io>::Error> where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
Writes the given bytes to the interpreter stdout stream followed by a newline.
This implementation delegates to the underlying output strategy.
Errors
If the output stream encounters an error, an error is returned.
impl LoadSources for Artichoke
[src]
type Artichoke = Artichoke
Concrete type for interpreter.
type Error = Error
Concrete type for errors returned from filesystem IO.
type Exception = Error
Concrete type for errors returned by File::require
.
pub fn def_file_for_type<P, T>(
&mut self,
path: P
) -> Result<(), <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
T: File<Artichoke = <Artichoke as LoadSources>::Artichoke, Error = <Artichoke as LoadSources>::Exception>,
[src]
&mut self,
path: P
) -> Result<(), <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
T: File<Artichoke = <Artichoke as LoadSources>::Artichoke, Error = <Artichoke as LoadSources>::Exception>,
pub fn def_rb_source_file<P, T>(
&mut self,
path: P,
contents: T
) -> Result<(), <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
T: Into<Cow<'static, [u8]>>,
[src]
&mut self,
path: P,
contents: T
) -> Result<(), <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
T: Into<Cow<'static, [u8]>>,
pub fn source_is_file<P>(
&self,
path: P
) -> Result<bool, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
[src]
&self,
path: P
) -> Result<bool, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
pub fn load_source<P>(
&mut self,
path: P
) -> Result<bool, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
[src]
&mut self,
path: P
) -> Result<bool, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
pub fn require_source<P>(
&mut self,
path: P
) -> Result<bool, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
[src]
&mut self,
path: P
) -> Result<bool, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
pub fn read_source_file_contents<P>(
&self,
path: P
) -> Result<Cow<'_, [u8]>, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
[src]
&self,
path: P
) -> Result<Cow<'_, [u8]>, <Artichoke as LoadSources>::Error> where
P: AsRef<Path>,
impl ModuleRegistry for Artichoke
[src]
pub fn def_module<T>(&mut self, spec: Spec) -> Result<(), Error> where
T: Any,
[src]
T: Any,
Create a module definition bound to a Rust type T
.
Module definitions have the same lifetime as the interpreter because the
module def owns the mrb_data_type
for the type, which must be
long-lived.
pub fn module_spec<T>(&self) -> Result<Option<&Spec>, Error> where
T: Any,
[src]
T: Any,
Retrieve a module definition from the interpreter bound to Rust type T
.
This function returns None
if type T
has not had a module spec
registered for it using ModuleRegistry::def_module
.
pub fn module_of<T>(&mut self) -> Result<Option<Value>, Error> where
T: Any,
[src]
T: Any,
pub fn is_module_defined<T>(&self) -> bool where
T: Any,
[src]
T: Any,
impl MrbGarbageCollection for Artichoke
[src]
pub fn create_arena_savepoint(
&mut self
) -> Result<ArenaIndex<'_>, ArenaSavepointError>
[src]
&mut self
) -> Result<ArenaIndex<'_>, ArenaSavepointError>
pub fn live_object_count(&mut self) -> i32
[src]
pub fn mark_value(&mut self, value: &Value)
[src]
pub fn incremental_gc(&mut self)
[src]
pub fn full_gc(&mut self)
[src]
pub fn enable_gc(&mut self) -> State
[src]
pub fn disable_gc(&mut self) -> State
[src]
impl Parser for Artichoke
[src]
type Context = Context
Concrete type for parser context.
type Error = Error
Error type for Parser APIs.
pub fn reset_parser(&mut self) -> Result<(), <Artichoke as Parser>::Error>
[src]
pub fn fetch_lineno(&self) -> Result<usize, <Artichoke as Parser>::Error>
[src]
pub fn add_fetch_lineno(
&mut self,
val: usize
) -> Result<usize, <Artichoke as Parser>::Error>
[src]
&mut self,
val: usize
) -> Result<usize, <Artichoke as Parser>::Error>
pub fn push_context(
&mut self,
context: <Artichoke as Parser>::Context
) -> Result<(), <Artichoke as Parser>::Error>
[src]
&mut self,
context: <Artichoke as Parser>::Context
) -> Result<(), <Artichoke as Parser>::Error>
pub fn pop_context(
&mut self
) -> Result<Option<<Artichoke as Parser>::Context>, <Artichoke as Parser>::Error>
[src]
&mut self
) -> Result<Option<<Artichoke as Parser>::Context>, <Artichoke as Parser>::Error>
pub fn peek_context(
&self
) -> Result<Option<&<Artichoke as Parser>::Context>, <Artichoke as Parser>::Error>
[src]
&self
) -> Result<Option<&<Artichoke as Parser>::Context>, <Artichoke as Parser>::Error>
impl Prng for Artichoke
[src]
type Error = Error
Concrete type for PRNG errors.
type Prng = Random
Conrete type for the interpreter psuedorandom number generator.
pub fn prng(
&self
) -> Result<&<Artichoke as Prng>::Prng, <Artichoke as Prng>::Error>
[src]
&self
) -> Result<&<Artichoke as Prng>::Prng, <Artichoke as Prng>::Error>
pub fn prng_mut(
&mut self
) -> Result<&mut <Artichoke as Prng>::Prng, <Artichoke as Prng>::Error>
[src]
&mut self
) -> Result<&mut <Artichoke as Prng>::Prng, <Artichoke as Prng>::Error>
impl Regexp for Artichoke
[src]
type Error = InterpreterExtractError
Concrete error type for errors encountered when manipulating Regexp
state. Read more
pub fn active_regexp_globals(
&self
) -> Result<usize, <Artichoke as Regexp>::Error>
[src]
&self
) -> Result<usize, <Artichoke as Regexp>::Error>
pub fn set_active_regexp_globals(
&mut self,
count: usize
) -> Result<(), <Artichoke as Regexp>::Error>
[src]
&mut self,
count: usize
) -> Result<(), <Artichoke as Regexp>::Error>
pub fn clear_regexp(&mut self) -> Result<(), <Artichoke as Regexp>::Error>
[src]
impl TopSelf for Artichoke
[src]
impl<T, U> TryConvert<T, U> for Artichoke where
Artichoke: Convert<T, U>,
[src]
Artichoke: Convert<T, U>,
Provide a fallible converter for types that implement an infallible conversion.
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: T
) -> Result<U, <Artichoke as TryConvert<T, U>>::Error>
[src]
&self,
value: T
) -> Result<U, <Artichoke as TryConvert<T, U>>::Error>
Blanket implementation that always succeeds by delegating to
Convert::convert
.
impl TryConvert<Value, Float> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<Float, <Artichoke as TryConvert<Value, Float>>::Error>
[src]
&self,
value: Value
) -> Result<Float, <Artichoke as TryConvert<Value, Float>>::Error>
impl TryConvert<Value, Integer> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<Integer, <Artichoke as TryConvert<Value, Integer>>::Error>
[src]
&self,
value: Value
) -> Result<Integer, <Artichoke as TryConvert<Value, Integer>>::Error>
impl TryConvert<Value, Option<bool>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<Option<bool>, <Artichoke as TryConvert<Value, Option<bool>>>::Error>
[src]
&self,
value: Value
) -> Result<Option<bool>, <Artichoke as TryConvert<Value, Option<bool>>>::Error>
impl TryConvert<Value, Option<i64>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<Option<i64>, <Artichoke as TryConvert<Value, Option<i64>>>::Error>
[src]
&self,
value: Value
) -> Result<Option<i64>, <Artichoke as TryConvert<Value, Option<i64>>>::Error>
impl TryConvert<Value, bool> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<bool, <Artichoke as TryConvert<Value, bool>>::Error>
[src]
&self,
value: Value
) -> Result<bool, <Artichoke as TryConvert<Value, bool>>::Error>
impl TryConvert<Value, f64> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<f64, <Artichoke as TryConvert<Value, f64>>::Error>
[src]
&self,
value: Value
) -> Result<f64, <Artichoke as TryConvert<Value, f64>>::Error>
impl TryConvert<Value, i64> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<i64, <Artichoke as TryConvert<Value, i64>>::Error>
[src]
&self,
value: Value
) -> Result<i64, <Artichoke as TryConvert<Value, i64>>::Error>
impl TryConvert<Value, u32> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<u32, <Artichoke as TryConvert<Value, u32>>::Error>
[src]
&self,
value: Value
) -> Result<u32, <Artichoke as TryConvert<Value, u32>>::Error>
impl TryConvert<Value, usize> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: Value
) -> Result<usize, <Artichoke as TryConvert<Value, usize>>::Error>
[src]
&self,
value: Value
) -> Result<usize, <Artichoke as TryConvert<Value, usize>>::Error>
impl TryConvert<isize, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: isize
) -> Result<Value, <Artichoke as TryConvert<isize, Value>>::Error>
[src]
&self,
value: isize
) -> Result<Value, <Artichoke as TryConvert<isize, Value>>::Error>
impl TryConvert<u64, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: u64
) -> Result<Value, <Artichoke as TryConvert<u64, Value>>::Error>
[src]
&self,
value: u64
) -> Result<Value, <Artichoke as TryConvert<u64, Value>>::Error>
impl TryConvert<usize, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert(
&self,
value: usize
) -> Result<Value, <Artichoke as TryConvert<usize, Value>>::Error>
[src]
&self,
value: usize
) -> Result<Value, <Artichoke as TryConvert<usize, Value>>::Error>
impl<'_, '_> TryConvertMut<&'_ [&'_ [u8]], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[&[u8]]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [&'_ [u8]], Value>>::Error>
[src]
&mut self,
value: &[&[u8]]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [&'_ [u8]], Value>>::Error>
impl<'_, '_> TryConvertMut<&'_ [&'_ str], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[&str]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [&'_ str], Value>>::Error>
[src]
&mut self,
value: &[&str]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [&'_ str], Value>>::Error>
impl<'_, '_> TryConvertMut<&'_ [Option<&'_ [u8]>], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[Option<&[u8]>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<&'_ [u8]>], Value>>::Error>
[src]
&mut self,
value: &[Option<&[u8]>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<&'_ [u8]>], Value>>::Error>
impl<'_, '_> TryConvertMut<&'_ [Option<&'_ str>], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[Option<&str>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<&'_ str>], Value>>::Error>
[src]
&mut self,
value: &[Option<&str>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<&'_ str>], Value>>::Error>
impl<'_> TryConvertMut<&'_ [Option<Value>], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[Option<Value>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<Value>], Value>>::Error>
[src]
&mut self,
value: &[Option<Value>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<Value>], Value>>::Error>
impl<'_> TryConvertMut<&'_ [Option<Vec<u8, Global>>], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[Option<Vec<u8, Global>>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<Vec<u8, Global>>], Value>>::Error>
[src]
&mut self,
value: &[Option<Vec<u8, Global>>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<Vec<u8, Global>>], Value>>::Error>
impl<'_> TryConvertMut<&'_ [String], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[String]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [String], Value>>::Error>
[src]
&mut self,
value: &[String]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [String], Value>>::Error>
impl<'_> TryConvertMut<&'_ [Value], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[Value]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Value], Value>>::Error>
[src]
&mut self,
value: &[Value]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Value], Value>>::Error>
impl<'_> TryConvertMut<&'_ [Vec<u8, Global>], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[Vec<u8, Global>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Vec<u8, Global>], Value>>::Error>
[src]
&mut self,
value: &[Vec<u8, Global>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Vec<u8, Global>], Value>>::Error>
impl<'_> TryConvertMut<&'_ [i64], Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &[i64]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [i64], Value>>::Error>
[src]
&mut self,
value: &[i64]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [i64], Value>>::Error>
impl<'_> TryConvertMut<&'_ OsStr, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &OsStr
) -> Result<Value, <Artichoke as TryConvertMut<&'_ OsStr, Value>>::Error>
[src]
&mut self,
value: &OsStr
) -> Result<Value, <Artichoke as TryConvertMut<&'_ OsStr, Value>>::Error>
impl<'a> TryConvertMut<&'a mut Value, CaptureExtract<'a>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &'a mut Value
) -> Result<CaptureExtract<'a>, <Artichoke as TryConvertMut<&'a mut Value, CaptureExtract<'a>>>::Error>
[src]
&mut self,
value: &'a mut Value
) -> Result<CaptureExtract<'a>, <Artichoke as TryConvertMut<&'a mut Value, CaptureExtract<'a>>>::Error>
impl<'a> TryConvertMut<&'a mut Value, IntegerString<'a>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: &'a mut Value
) -> Result<IntegerString<'a>, <Artichoke as TryConvertMut<&'a mut Value, IntegerString<'a>>>::Error>
[src]
&mut self,
value: &'a mut Value
) -> Result<IntegerString<'a>, <Artichoke as TryConvertMut<&'a mut Value, IntegerString<'a>>>::Error>
impl TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: (Option<Value>, Option<Value>)
) -> Result<(Option<Options>, Option<Encoding>), <Artichoke as TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)>>::Error>
[src]
&mut self,
value: (Option<Value>, Option<Value>)
) -> Result<(Option<Options>, Option<Encoding>), <Artichoke as TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)>>::Error>
impl TryConvertMut<CaptureMatch, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: CaptureMatch
) -> Result<Value, <Artichoke as TryConvertMut<CaptureMatch, Value>>::Error>
[src]
&mut self,
value: CaptureMatch
) -> Result<Value, <Artichoke as TryConvertMut<CaptureMatch, Value>>::Error>
impl<'a> TryConvertMut<Cow<'a, OsStr>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Cow<'a, OsStr>
) -> Result<Value, <Artichoke as TryConvertMut<Cow<'a, OsStr>, Value>>::Error>
[src]
&mut self,
value: Cow<'a, OsStr>
) -> Result<Value, <Artichoke as TryConvertMut<Cow<'a, OsStr>, Value>>::Error>
impl TryConvertMut<Option<Value>, Max> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
max: Option<Value>
) -> Result<Max, <Artichoke as TryConvertMut<Option<Value>, Max>>::Error>
[src]
&mut self,
max: Option<Value>
) -> Result<Max, <Artichoke as TryConvertMut<Option<Value>, Max>>::Error>
impl TryConvertMut<Option<Value>, Max> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
max: Option<Value>
) -> Result<Max, <Artichoke as TryConvertMut<Option<Value>, Max>>::Error>
[src]
&mut self,
max: Option<Value>
) -> Result<Max, <Artichoke as TryConvertMut<Option<Value>, Max>>::Error>
impl TryConvertMut<Option<Value>, Option<Radix>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Option<Value>
) -> Result<Option<Radix>, <Artichoke as TryConvertMut<Option<Value>, Option<Radix>>>::Error>
[src]
&mut self,
value: Option<Value>
) -> Result<Option<Radix>, <Artichoke as TryConvertMut<Option<Value>, Option<Radix>>>::Error>
impl TryConvertMut<Option<Value>, Seed> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Option<Value>
) -> Result<Seed, <Artichoke as TryConvertMut<Option<Value>, Seed>>::Error>
[src]
&mut self,
value: Option<Value>
) -> Result<Seed, <Artichoke as TryConvertMut<Option<Value>, Seed>>::Error>
impl TryConvertMut<OsString, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: OsString
) -> Result<Value, <Artichoke as TryConvertMut<OsString, Value>>::Error>
[src]
&mut self,
value: OsString
) -> Result<Value, <Artichoke as TryConvertMut<OsString, Value>>::Error>
impl TryConvertMut<Scan, Option<Value>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
from: Scan
) -> Result<Option<Value>, <Artichoke as TryConvertMut<Scan, Option<Value>>>::Error>
[src]
&mut self,
from: Scan
) -> Result<Option<Value>, <Artichoke as TryConvertMut<Scan, Option<Value>>>::Error>
impl<T, U> TryConvertMut<T, U> for Artichoke where
Artichoke: ConvertMut<T, U>,
[src]
Artichoke: ConvertMut<T, U>,
Provide a mutable fallible converter for types that implement an infallible conversion.
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: T
) -> Result<U, <Artichoke as TryConvertMut<T, U>>::Error>
[src]
&mut self,
value: T
) -> Result<U, <Artichoke as TryConvertMut<T, U>>::Error>
Blanket implementation that always succeeds by delegating to
Convert::convert
.
impl<'a> TryConvertMut<Value, &'a [u8]> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<&'a [u8], <Artichoke as TryConvertMut<Value, &'a [u8]>>::Error>
[src]
&mut self,
value: Value
) -> Result<&'a [u8], <Artichoke as TryConvertMut<Value, &'a [u8]>>::Error>
impl<'a> TryConvertMut<Value, &'a str> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<&'a str, <Artichoke as TryConvertMut<Value, &'a str>>::Error>
[src]
&mut self,
value: Value
) -> Result<&'a str, <Artichoke as TryConvertMut<Value, &'a str>>::Error>
impl TryConvertMut<Value, Encoding> for Artichoke
[src]
type Error = InvalidEncodingError
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Encoding, <Artichoke as TryConvertMut<Value, Encoding>>::Error>
[src]
&mut self,
value: Value
) -> Result<Encoding, <Artichoke as TryConvertMut<Value, Encoding>>::Error>
impl TryConvertMut<Value, Max> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
max: Value
) -> Result<Max, <Artichoke as TryConvertMut<Value, Max>>::Error>
[src]
&mut self,
max: Value
) -> Result<Max, <Artichoke as TryConvertMut<Value, Max>>::Error>
impl TryConvertMut<Value, Max> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
max: Value
) -> Result<Max, <Artichoke as TryConvertMut<Value, Max>>::Error>
[src]
&mut self,
max: Value
) -> Result<Max, <Artichoke as TryConvertMut<Value, Max>>::Error>
impl<'a> TryConvertMut<Value, Option<&'a [u8]>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Option<&'a [u8]>, <Artichoke as TryConvertMut<Value, Option<&'a [u8]>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Option<&'a [u8]>, <Artichoke as TryConvertMut<Value, Option<&'a [u8]>>>::Error>
impl<'a> TryConvertMut<Value, Option<&'a str>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Option<&'a str>, <Artichoke as TryConvertMut<Value, Option<&'a str>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Option<&'a str>, <Artichoke as TryConvertMut<Value, Option<&'a str>>>::Error>
impl TryConvertMut<Value, Option<String>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Option<String>, <Artichoke as TryConvertMut<Value, Option<String>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Option<String>, <Artichoke as TryConvertMut<Value, Option<String>>>::Error>
impl TryConvertMut<Value, Option<Vec<u8, Global>>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Option<Vec<u8, Global>>, <Artichoke as TryConvertMut<Value, Option<Vec<u8, Global>>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Option<Vec<u8, Global>>, <Artichoke as TryConvertMut<Value, Option<Vec<u8, Global>>>>::Error>
impl TryConvertMut<Value, Seed> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Seed, <Artichoke as TryConvertMut<Value, Seed>>::Error>
[src]
&mut self,
value: Value
) -> Result<Seed, <Artichoke as TryConvertMut<Value, Seed>>::Error>
impl TryConvertMut<Value, String> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<String, <Artichoke as TryConvertMut<Value, String>>::Error>
[src]
&mut self,
value: Value
) -> Result<String, <Artichoke as TryConvertMut<Value, String>>::Error>
impl<'a> TryConvertMut<Value, Vec<&'a [u8], Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<&'a [u8], Global>, <Artichoke as TryConvertMut<Value, Vec<&'a [u8], Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<&'a [u8], Global>, <Artichoke as TryConvertMut<Value, Vec<&'a [u8], Global>>>::Error>
impl<'a> TryConvertMut<Value, Vec<&'a str, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<&'a str, Global>, <Artichoke as TryConvertMut<Value, Vec<&'a str, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<&'a str, Global>, <Artichoke as TryConvertMut<Value, Vec<&'a str, Global>>>::Error>
impl TryConvertMut<Value, Vec<(Value, Value), Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<(Value, Value), Global>, <Artichoke as TryConvertMut<Value, Vec<(Value, Value), Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<(Value, Value), Global>, <Artichoke as TryConvertMut<Value, Vec<(Value, Value), Global>>>::Error>
impl<'a> TryConvertMut<Value, Vec<Option<&'a [u8]>, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<Option<&'a [u8]>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<&'a [u8]>, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<Option<&'a [u8]>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<&'a [u8]>, Global>>>::Error>
impl<'a> TryConvertMut<Value, Vec<Option<&'a str>, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<Option<&'a str>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<&'a str>, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<Option<&'a str>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<&'a str>, Global>>>::Error>
impl TryConvertMut<Value, Vec<Option<String>, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<Option<String>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<String>, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<Option<String>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<String>, Global>>>::Error>
impl TryConvertMut<Value, Vec<Option<Vec<u8, Global>>, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<Option<Vec<u8, Global>>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<Vec<u8, Global>>, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<Option<Vec<u8, Global>>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<Vec<u8, Global>>, Global>>>::Error>
impl TryConvertMut<Value, Vec<String, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<String, Global>, <Artichoke as TryConvertMut<Value, Vec<String, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<String, Global>, <Artichoke as TryConvertMut<Value, Vec<String, Global>>>::Error>
impl TryConvertMut<Value, Vec<Value, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<Value, Global>, <Artichoke as TryConvertMut<Value, Vec<Value, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<Value, Global>, <Artichoke as TryConvertMut<Value, Vec<Value, Global>>>::Error>
impl TryConvertMut<Value, Vec<Vec<u8, Global>, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<Vec<u8, Global>, Global>, <Artichoke as TryConvertMut<Value, Vec<Vec<u8, Global>, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<Vec<u8, Global>, Global>, <Artichoke as TryConvertMut<Value, Vec<Vec<u8, Global>, Global>>>::Error>
impl TryConvertMut<Value, Vec<i64, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<i64, Global>, <Artichoke as TryConvertMut<Value, Vec<i64, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<i64, Global>, <Artichoke as TryConvertMut<Value, Vec<i64, Global>>>::Error>
impl TryConvertMut<Value, Vec<u8, Global>> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Value
) -> Result<Vec<u8, Global>, <Artichoke as TryConvertMut<Value, Vec<u8, Global>>>::Error>
[src]
&mut self,
value: Value
) -> Result<Vec<u8, Global>, <Artichoke as TryConvertMut<Value, Vec<u8, Global>>>::Error>
impl<'_> TryConvertMut<Vec<&'_ [u8], Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<&[u8], Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<&'_ [u8], Global>, Value>>::Error>
[src]
&mut self,
value: Vec<&[u8], Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<&'_ [u8], Global>, Value>>::Error>
impl<'_> TryConvertMut<Vec<&'_ str, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<&str, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<&'_ str, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<&str, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<&'_ str, Global>, Value>>::Error>
impl TryConvertMut<Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>, Value>>::Error>
[src]
&mut self,
value: Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>, Value>>::Error>
impl<'_> TryConvertMut<Vec<Option<&'_ [u8]>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Option<&[u8]>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<&'_ [u8]>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Option<&[u8]>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<&'_ [u8]>, Global>, Value>>::Error>
impl<'_> TryConvertMut<Vec<Option<&'_ str>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Option<&str>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<&'_ str>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Option<&str>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<&'_ str>, Global>, Value>>::Error>
impl TryConvertMut<Vec<Option<Vec<u8, Global>>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Option<Vec<u8, Global>>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<Vec<u8, Global>>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Option<Vec<u8, Global>>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<Vec<u8, Global>>, Global>, Value>>::Error>
impl TryConvertMut<Vec<String, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<String, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<String, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<String, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<String, Global>, Value>>::Error>
impl TryConvertMut<Vec<Value, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Value, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Value, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Value, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Value, Global>, Value>>::Error>
impl<'_> TryConvertMut<Vec<Vec<Option<&'_ [u8]>, Global>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Vec<Option<&[u8]>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<&'_ [u8]>, Global>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Vec<Option<&[u8]>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<&'_ [u8]>, Global>, Global>, Value>>::Error>
impl<'_> TryConvertMut<Vec<Vec<Option<&'_ str>, Global>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Vec<Option<&str>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<&'_ str>, Global>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Vec<Option<&str>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<&'_ str>, Global>, Global>, Value>>::Error>
impl TryConvertMut<Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>, Value>>::Error>
impl TryConvertMut<Vec<Vec<u8, Global>, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<Vec<u8, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<u8, Global>, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<Vec<u8, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<u8, Global>, Global>, Value>>::Error>
impl TryConvertMut<Vec<i64, Global>, Value> for Artichoke
[src]
type Error = Error
Error type for failed conversions.
pub fn try_convert_mut(
&mut self,
value: Vec<i64, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<i64, Global>, Value>>::Error>
[src]
&mut self,
value: Vec<i64, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<i64, Global>, Value>>::Error>
impl Warn for Artichoke
[src]
Auto Trait Implementations
impl RefUnwindSafe for Artichoke
impl !Send for Artichoke
impl !Sync for Artichoke
impl Unpin for Artichoke
impl UnwindSafe for Artichoke
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> InternerAllSymbols for T where
T: Intern<Symbol = U>,
U: Copy + Into<u32>,
[src]
T: Intern<Symbol = U>,
U: Copy + Into<u32>,
pub fn all_symbols(&self) -> AllSymbols
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,