Struct cranelift_codegen::ir::SourceLoc
source · pub struct SourceLoc(_);
Expand description
A source location.
This is an opaque 32-bit number attached to each Cranelift IR instruction. Cranelift does not interpret source locations in any way, they are simply preserved from the input to the output.
The default source location uses the all-ones bit pattern !0
. It is used for instructions
that can’t be given a real source location.
Implementations§
Trait Implementations§
source§impl PartialEq<SourceLoc> for SourceLoc
impl PartialEq<SourceLoc> for SourceLoc
impl Copy for SourceLoc
impl Eq for SourceLoc
impl StructuralEq for SourceLoc
impl StructuralPartialEq for SourceLoc
Auto Trait Implementations§
impl RefUnwindSafe for SourceLoc
impl Send for SourceLoc
impl Sync for SourceLoc
impl Unpin for SourceLoc
impl UnwindSafe for SourceLoc
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.