Trait HasSpan

Source
pub trait HasSpan<'src> {
    // Required method
    fn span(&self) -> Span<'src>;
}
Expand description

Any syntactic element can describe its location within the source material using this trait.

Required Methods§

Source

fn span(&self) -> Span<'src>

Return a Span describing the syntactic element’s location within the source string/file.

Implementors§

Source§

impl<'src> HasSpan<'src> for Block<'src>

Source§

impl<'src> HasSpan<'src> for Attrlist<'src>

Source§

impl<'src> HasSpan<'src> for CompoundDelimitedBlock<'src>

Source§

impl<'src> HasSpan<'src> for MediaBlock<'src>

Source§

impl<'src> HasSpan<'src> for RawDelimitedBlock<'src>

Source§

impl<'src> HasSpan<'src> for SectionBlock<'src>

Source§

impl<'src> HasSpan<'src> for SimpleBlock<'src>

Source§

impl<'src> HasSpan<'src> for Attribute<'src>

Source§

impl<'src> HasSpan<'src> for Document<'src>

Source§

impl<'src> HasSpan<'src> for Header<'src>