pub struct FieldIdx(pub u16);Expand description
A field slot of a struct type, counted across the whole parent chain (a struct’s fields start with its parent’s).
§Examples
use bytecode_lang::FieldIdx;
assert_eq!(FieldIdx(2).to_string(), "#2");Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for FieldIdx
impl Eq for FieldIdx
Source§impl Ord for FieldIdx
impl Ord for FieldIdx
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 FieldIdx
impl PartialOrd for FieldIdx
impl StructuralPartialEq for FieldIdx
Auto Trait Implementations§
impl Freeze for FieldIdx
impl RefUnwindSafe for FieldIdx
impl Send for FieldIdx
impl Sync for FieldIdx
impl Unpin for FieldIdx
impl UnsafeUnpin for FieldIdx
impl UnwindSafe for FieldIdx
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