[][src]Trait swc_common::Spanned

pub trait Spanned {
    fn span(&self) -> Span;
}

Derive

This trait can be derived with #[derive(Spanned)].

Required methods

fn span(&self) -> Span

Get span of self.

Loading content...

Implementations on Foreign Types

impl<'a, T> Spanned for Cow<'a, T> where
    T: Spanned + Clone
[src]

impl<S> Spanned for Option<S> where
    S: Spanned
[src]

impl<S: ?Sized> Spanned for Arc<S> where
    S: Spanned
[src]

impl<S: ?Sized> Spanned for Box<S> where
    S: Spanned
[src]

impl<'a, S: ?Sized> Spanned for &'a S where
    S: Spanned
[src]

impl<A, B> Spanned for Either<A, B> where
    A: Spanned,
    B: Spanned
[src]

Loading content...

Implementors

impl Spanned for Comment[src]

impl Spanned for BytePos[src]

fn span(&self) -> Span[src]

Creates a new single-byte span.

impl Spanned for Span[src]

Loading content...