pub struct SymbolOffset(/* private fields */);Expand description
Represents the offset in a DataItem::SymbolRefWithOffset.
This is an opaque type in case negative offsets are later added. For now, the IR definition restricts it to nonnegative numbers.
Implementations§
Source§impl SymbolOffset
impl SymbolOffset
pub fn unspanned<T: Number>(value: T) -> Selfwhere
Self: From<NumericLiteral<T>>,
Trait Implementations§
Source§impl Clone for SymbolOffset
impl Clone for SymbolOffset
Source§fn clone(&self) -> SymbolOffset
fn clone(&self) -> SymbolOffset
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 SymbolOffset
impl Debug for SymbolOffset
Source§impl Display for SymbolOffset
impl Display for SymbolOffset
Source§impl From<NumericLiteral<u64>> for SymbolOffset
impl From<NumericLiteral<u64>> for SymbolOffset
Source§fn from(value: NumericLiteral<u64>) -> Self
fn from(value: NumericLiteral<u64>) -> Self
Converts to this type from the input type.
Source§impl Hash for SymbolOffset
impl Hash for SymbolOffset
Source§impl Ord for SymbolOffset
impl Ord for SymbolOffset
Source§fn cmp(&self, other: &SymbolOffset) -> Ordering
fn cmp(&self, other: &SymbolOffset) -> 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 SymbolOffset
impl PartialEq for SymbolOffset
Source§impl PartialOrd for SymbolOffset
impl PartialOrd for SymbolOffset
impl Eq for SymbolOffset
impl StructuralPartialEq for SymbolOffset
Auto Trait Implementations§
impl Freeze for SymbolOffset
impl RefUnwindSafe for SymbolOffset
impl Send for SymbolOffset
impl Sync for SymbolOffset
impl Unpin for SymbolOffset
impl UnwindSafe for SymbolOffset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.