pub enum ArgItem<'a> {
Positional,
Named(&'a [u8]),
}Expand description
One argument of a dynamic call, as ParamList::bind sees it.
§Examples
use bytecode_lang::ArgItem;
let items = [ArgItem::Positional, ArgItem::Named(b"x")];
assert_eq!(items.len(), 2);Variants§
Positional
A positional argument.
Named(&'a [u8])
A named argument, its name as bytes (from a call shape’s string or a spread map’s string key).
Trait Implementations§
impl<'a> Copy for ArgItem<'a>
impl<'a> Eq for ArgItem<'a>
Source§impl<'a> Ord for ArgItem<'a>
impl<'a> Ord for ArgItem<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'a> PartialOrd for ArgItem<'a>
impl<'a> PartialOrd for ArgItem<'a>
impl<'a> StructuralPartialEq for ArgItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for ArgItem<'a>
impl<'a> RefUnwindSafe for ArgItem<'a>
impl<'a> Send for ArgItem<'a>
impl<'a> Sync for ArgItem<'a>
impl<'a> Unpin for ArgItem<'a>
impl<'a> UnsafeUnpin for ArgItem<'a>
impl<'a> UnwindSafe for ArgItem<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more