[−][src]Struct wasmtime_environ::ir::SourceLoc
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.
Methods
impl SourceLoc
[src]
pub fn new(bits: u32) -> SourceLoc
[src]
Create a new source location with the given bits.
pub fn is_default(self) -> bool
[src]
Is this the default source location?
pub fn bits(self) -> u32
[src]
Read the bits of this source location.
Trait Implementations
impl Clone for SourceLoc
[src]
impl Copy for SourceLoc
[src]
impl Debug for SourceLoc
[src]
impl Default for SourceLoc
[src]
impl<'de> Deserialize<'de> for SourceLoc
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<SourceLoc, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<SourceLoc, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for SourceLoc
[src]
impl Eq for SourceLoc
[src]
impl PartialEq<SourceLoc> for SourceLoc
[src]
impl Serialize for SourceLoc
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for SourceLoc
[src]
impl StructuralPartialEq for SourceLoc
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,