[−][src]Struct codespan::Location
A location in a source file.
Fields
line: LineIndex
The line index in the source file.
column: ColumnIndex
The column index in the source file.
Implementations
impl Location
[src][−]
pub fn new(
line: impl Into<LineIndex>,
column: impl Into<ColumnIndex>
) -> Location
[src][−]
line: impl Into<LineIndex>,
column: impl Into<ColumnIndex>
) -> Location
Construct a new location from a line index and a column index.
Trait Implementations
impl Clone for Location
[src][+]
impl Copy for Location
[src]
impl Debug for Location
[src][+]
impl Eq for Location
[src]
impl Hash for Location
[src][+]
impl Ord for Location
[src][+]
impl PartialEq<Location> for Location
[src][+]
impl PartialOrd<Location> for Location
[src][+]
impl StructuralEq for Location
[src]
impl StructuralPartialEq for Location
[src]
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,