Impl AsRef<[RuntimeValue]> for RuntimeArgs
This impl can be used as an escape hatch if the user wants to use the inner slice.
This commit is contained in:
parent
4bf4c67a48
commit
bb53ff866e
|
@ -12,6 +12,12 @@ impl<'a> From<&'a [RuntimeValue]> for RuntimeArgs<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> AsRef<[RuntimeValue]> for RuntimeArgs<'a> {
|
||||
fn as_ref(&self) -> &[RuntimeValue] {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> RuntimeArgs<'a> {
|
||||
/// Extract argument by index `idx`.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue