pub struct ShapeId(pub u16);Expand description
An index into the running function’s call shapes (see
Inst::DCallShape and
CallShape): which window arguments are positional,
named, or spread. 16-bit, like NameRef, so a function may use 65,536
distinct shapes.
§Examples
use bytecode_lang::ShapeId;
assert_eq!(ShapeId(2).to_string(), "cs2");Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for ShapeId
impl Eq for ShapeId
Source§impl Ord for ShapeId
impl Ord for ShapeId
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 ShapeId
impl PartialOrd for ShapeId
impl StructuralPartialEq for ShapeId
Auto Trait Implementations§
impl Freeze for ShapeId
impl RefUnwindSafe for ShapeId
impl Send for ShapeId
impl Sync for ShapeId
impl Unpin for ShapeId
impl UnsafeUnpin for ShapeId
impl UnwindSafe for ShapeId
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