pub struct UpvalIdx(pub u16);Expand description
A captured value of the running closure (see
Inst::GetUpval).
§Examples
use bytecode_lang::UpvalIdx;
assert_eq!(UpvalIdx(0).to_string(), "u0");Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for UpvalIdx
impl Eq for UpvalIdx
Source§impl Ord for UpvalIdx
impl Ord for UpvalIdx
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 UpvalIdx
impl PartialOrd for UpvalIdx
impl StructuralPartialEq for UpvalIdx
Auto Trait Implementations§
impl Freeze for UpvalIdx
impl RefUnwindSafe for UpvalIdx
impl Send for UpvalIdx
impl Sync for UpvalIdx
impl Unpin for UpvalIdx
impl UnsafeUnpin for UpvalIdx
impl UnwindSafe for UpvalIdx
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