Struct Span

pub struct Span { pub start_line: usize, pub start_col: usize, pub end_line: usize, pub end_col: usize, pub range: Range<usize> }

The position of a node in the template source

Fields

start_line: usize

Line the span starts on, 1-based

start_col: usize

Column the span starts on, 0-based

end_line: usize

Line the span ends on, 1-based

end_col: usize

Column the span ends on, 0-based

range: Range<usize>

Byte range of the span in the template source

Trait Implementations

impl Clone for Span

fn clone(&self) -> Self

impl Debug for Span

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Span

fn default() -> Self

impl Display for Span

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Span

impl PartialEq for Span

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for Span

Auto Trait Implementations

impl Freeze for Span

impl RefUnwindSafe for Span

impl Send for Span

impl Sync for Span

impl Unpin for Span

impl UnsafeUnpin for Span

impl UnwindSafe for Span

Blanket Implementations

impl<T> Any for Span where T: 'static + ?Sized,

impl<T> Borrow<T> for Span where T: ?Sized,

impl<T> BorrowMut<T> for Span where T: ?Sized,

impl<T> CloneToUninit for Span where T: Clone,

impl<T> From<T> for Span

impl<T> ToOwned for Span where T: Clone,

impl<T> ToString for Span where T: Display + ?Sized,

impl<T, U> Into<U> for Span where U: From<T>,

impl<T, U> TryFrom<U> for Span where U: Into<T>,

impl<T, U> TryInto<U> for Span where U: TryFrom<T>,