[][src]Struct srcpos_get::Pos

pub struct Pos {
    pub line: usize,
    pub column: usize,
}

Posation in source code

Fields

line: usize

nth of line

column: usize

nth of characters in current line

Implementations

impl Pos[src]

pub const fn zero() -> Pos[src]

New zero

pub const fn new(line: usize, column: usize) -> Pos[src]

New at

pub const fn new_same(value: usize) -> Pos[src]

New same value

Trait Implementations

impl Clone for Pos[src]

impl Copy for Pos[src]

impl Debug for Pos[src]

impl Default for Pos[src]

impl<'de> Deserialize<'de> for Pos[src]

impl Display for Pos[src]

impl Eq for Pos[src]

impl<T> From<[T; 0]> for Pos[src]

impl From<[usize; 1]> for Pos[src]

impl From<[usize; 2]> for Pos[src]

impl From<()> for Pos[src]

impl From<(usize, usize)> for Pos[src]

impl From<Pos> for Loc[src]

impl From<usize> for Pos[src]

impl GetPos for Pos[src]

impl Hash for Pos[src]

impl Into<[usize; 1]> for Pos[src]

impl Into<[usize; 2]> for Pos[src]

impl Into<(usize, usize)> for Pos[src]

impl Into<Pos> for Loc[src]

impl Into<usize> for Pos[src]

impl Ord for Pos[src]

impl PartialEq<Pos> for Pos[src]

impl PartialOrd<Pos> for Pos[src]

impl Serialize for Pos[src]

impl StructuralEq for Pos[src]

impl StructuralPartialEq for Pos[src]

Auto Trait Implementations

impl RefUnwindSafe for Pos

impl Send for Pos

impl Sync for Pos

impl Unpin for Pos

impl UnwindSafe for Pos

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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.