[][src]Struct rsass::ErrPos

pub struct ErrPos {
    pub index: usize,
    pub line: usize,
    pub pos: usize,
}

Position data for a parse error.

To be usefull for reporting the error to an end user, this contains the position in two forms, both the byte index (an index of the parsed byte slice) and the line number and character position in that line.

Fields

index: usizeline: usizepos: usize

Methods

impl ErrPos[src]

pub fn pos_of(index: usize, buffer: &[u8]) -> Self[src]

Trait Implementations

impl Debug for ErrPos[src]

impl Display for ErrPos[src]

Auto Trait Implementations

impl Sync for ErrPos

impl Unpin for ErrPos

impl Send for ErrPos

impl UnwindSafe for ErrPos

impl RefUnwindSafe for ErrPos

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[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.

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,