[][src]Struct wasmer_compiler::SourceLoc

#[repr(transparent)]pub struct SourceLoc(_);

A source location.

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

impl SourceLoc[src]

pub fn new(bits: u32) -> Self[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]

impl Display for SourceLoc[src]

impl Eq for SourceLoc[src]

impl PartialEq<SourceLoc> for SourceLoc[src]

impl Serialize for SourceLoc[src]

impl StructuralEq for SourceLoc[src]

impl StructuralPartialEq for SourceLoc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.