pub enum Bound {
Arg(usize),
Default,
Collected(Vec<usize>),
}Expand description
What one parameter received from ParamList::bind.
§Examples
use bytecode_lang::Bound;
assert_ne!(Bound::Arg(0), Bound::Default);Variants§
Arg(usize)
The argument at this item index.
Default
Nothing: the parameter has a default, which the callee computes (its presence bit is clear).
Collected(Vec<usize>)
A rest parameter’s items, in order. A RestMap
stores a positional item under the next integer key and a named one
under its name.
Trait Implementations§
impl Eq for Bound
Source§impl Ord for Bound
impl Ord for Bound
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 PartialOrd for Bound
impl PartialOrd for Bound
impl StructuralPartialEq for Bound
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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