[][src]Struct tremor_script::pos::Location

pub struct Location {
    pub unit_id: usize,
    pub line: usize,
    pub column: usize,
    pub absolute: usize,
}

A location in a source file

Fields

unit_id: usize

The compilation unit id

line: usize

The Line

column: usize

The Column

absolute: usize

Absolute location in bytes starting from 0

Methods

impl Location[src]

pub fn new(line: usize, column: usize, absolute: usize) -> Self[src]

Creates a new location

pub fn for_line_directive() -> Self[src]

Location for line directives

Trait Implementations

impl Clone for Location[src]

impl Copy for Location[src]

impl Debug for Location[src]

impl Default for Location[src]

impl<'de> Deserialize<'de> 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 Serialize for Location[src]

impl StructuralEq for Location[src]

impl StructuralPartialEq for Location[src]

impl Sub<Location> for Location[src]

type Output = Location

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,