pub struct LocalBodyId(/* private fields */);Expand description
Zero-based body index in an assembly. See the module recipe and lifetime rules.
Implementations§
Source§impl LocalBodyId
impl LocalBodyId
Sourcepub const fn from_index(index: usize) -> LocalBodyId
pub const fn from_index(index: usize) -> LocalBodyId
Explicit local index, allowing forward references. Insertion checks bounds.
Trait Implementations§
Source§impl Clone for LocalBodyId
impl Clone for LocalBodyId
Source§fn clone(&self) -> LocalBodyId
fn clone(&self) -> LocalBodyId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalBodyId
impl Debug for LocalBodyId
Source§impl Hash for LocalBodyId
impl Hash for LocalBodyId
Source§impl Ord for LocalBodyId
impl Ord for LocalBodyId
Source§fn cmp(&self, other: &LocalBodyId) -> Ordering
fn cmp(&self, other: &LocalBodyId) -> Ordering
1.21.0 · 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
Source§impl PartialEq for LocalBodyId
impl PartialEq for LocalBodyId
Source§impl PartialOrd for LocalBodyId
impl PartialOrd for LocalBodyId
impl Copy for LocalBodyId
impl Eq for LocalBodyId
impl StructuralPartialEq for LocalBodyId
Auto Trait Implementations§
impl Freeze for LocalBodyId
impl RefUnwindSafe for LocalBodyId
impl Send for LocalBodyId
impl Sync for LocalBodyId
impl Unpin for LocalBodyId
impl UnwindSafe for LocalBodyId
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