Struct cretonne_codegen::ir::SourceLoc [] [src]

pub struct SourceLoc(_);

A source location.

This is an opaque 32-bit number attached to each Cretonne IR instruction. Cretonne 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]

[src]

Create a new source location with the given bits.

[src]

Is this the default source location?

[src]

Read the bits of this source location.

Trait Implementations

impl Clone for SourceLoc
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SourceLoc
[src]

impl Debug for SourceLoc
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for SourceLoc
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for SourceLoc
[src]

impl Default for SourceLoc
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for SourceLoc
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for SourceLoc

impl Sync for SourceLoc