[][src]Struct clingo_sys::clingo_location

#[repr(C)]
pub struct clingo_location {
    pub begin_file: *const c_char,
    pub end_file: *const c_char,
    pub begin_line: usize,
    pub end_line: usize,
    pub begin_column: usize,
    pub end_column: usize,
}

! 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.

Fields

begin_file: *const c_char

!< the file where the location begins

end_file: *const c_char

!< the file where the location ends

begin_line: usize

!< the line where the location begins

end_line: usize

!< the line where the location ends

begin_column: usize

!< the column where the location begins

end_column: usize

!< the column where the location ends

Trait Implementations

impl Clone for clingo_location[src]

impl Copy for clingo_location[src]

impl Debug for clingo_location[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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