pub trait ArgList {
type Value: ReprValue;
type Output: AsRef<[Self::Value]>;
// Required methods
fn into_arg_list_with(self, handle: &Ruby) -> Self::Output;
fn contains_kw_args(&self) -> bool;
}
Expand description
Trait for types that can be used as an arguments list when calling Ruby methods.
Required Associated Types§
Required Methods§
sourcefn into_arg_list_with(self, handle: &Ruby) -> Self::Output
fn into_arg_list_with(self, handle: &Ruby) -> Self::Output
Convert self
into a type that can be used as a Ruby argument list.
sourcefn contains_kw_args(&self) -> bool
fn contains_kw_args(&self) -> bool
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<'a, T> ArgList for &'a [T]where
T: ReprValue,
impl<'a, T> ArgList for &'a [T]where
T: ReprValue,
§Safety
The implmentation of ArgList
for slices is not intended to suggest that
it is valid to build a Vec
of Ruby values to then convert to a slice.
Ruby values should never be put into a Vec
.