Struct xswag_base::code::Loc [] [src]

pub struct Loc {
    pub line: LineIdx,
    pub col: ColIdx,
}

Location within one file specified by line and column.

Fields

line: LineIdx col: ColIdx

Trait Implementations

impl Debug for Loc
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for Loc
[src]

impl PartialEq for Loc
[src]

fn eq(&self, __arg_0: &Loc) -> bool

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

fn ne(&self, __arg_0: &Loc) -> bool

This method tests for !=.

impl Copy for Loc
[src]

impl Clone for Loc
[src]

fn clone(&self) -> Loc

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more