Struct clingo::Location [] [src]

pub struct Location(_);

Represents a source code location marking its beginnig and end.

Note: Not all locations refer to physical files. By convention, such locations use a name put in angular brackets as filename.

Methods

impl Location
[src]

[src]

Create a new location.

Arguments

  • begin_file - the file where the location begins
  • end_file - the file where the location ends
  • begin_line - the line where the location begins
  • end_line - the line where the location ends
  • begin_column - the column where the location begins
  • end_column - the column where the location ends

Errors

  • NulError - if begin_file end_file or contain a nul byte

[src]

the file where the location begins

[src]

the file where the location ends

[src]

the line where the location begins

[src]

the line where the location ends

[src]

the column where the location begins

[src]

the column where the location ends

Trait Implementations

impl Debug for Location
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Location
[src]

impl Clone for Location
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Location

impl !Sync for Location