rustfmt_nightly::spanned

Trait Spanned

source
pub(crate) trait Spanned {
    // Required method
    fn span(&self) -> Span;
}
Expand description

Spanned returns a span including attributes, if available.

Required Methods§

source

fn span(&self) -> Span

Implementations on Foreign Types§

source§

impl Spanned for FnRetTy

source§

fn span(&self) -> Span

source§

impl Spanned for GenericArg

source§

fn span(&self) -> Span

source§

impl Spanned for GenericBound

source§

fn span(&self) -> Span

source§

impl Spanned for MetaItemInner

source§

fn span(&self) -> Span

source§

impl Spanned for PreciseCapturingArg

source§

fn span(&self) -> Span

source§

impl Spanned for WherePredicate

source§

fn span(&self) -> Span

source§

impl Spanned for Arm

source§

fn span(&self) -> Span

source§

impl Spanned for Expr

source§

fn span(&self) -> Span

source§

impl Spanned for ExprField

source§

fn span(&self) -> Span

source§

impl Spanned for FieldDef

source§

fn span(&self) -> Span

source§

impl Spanned for GenericParam

source§

fn span(&self) -> Span

source§

impl Spanned for Item

source§

fn span(&self) -> Span

source§

impl Spanned for Local

source§

fn span(&self) -> Span

source§

impl Spanned for Param

source§

fn span(&self) -> Span

source§

impl Spanned for Pat

source§

fn span(&self) -> Span

source§

impl Spanned for Stmt

source§

fn span(&self) -> Span

source§

impl Spanned for Ty

source§

fn span(&self) -> Span

source§

impl Spanned for AssocItem

source§

fn span(&self) -> Span

source§

impl Spanned for ForeignItem

source§

fn span(&self) -> Span

source§

impl<T> Spanned for Spanned<T>

source§

fn span(&self) -> Span

source§

impl<T: Spanned> Spanned for P<T>

source§

fn span(&self) -> Span

Implementors§

source§

impl Spanned for MacroArg

source§

impl Spanned for UseTree

source§

impl<'a> Spanned for OverflowableItem<'a>

source§

impl<'a> Spanned for TuplePatField<'a>

source§

impl<'a> Spanned for SegmentParam<'a>

source§

impl<'a> Spanned for ArmWrapper<'a>

source§

impl<'a> Spanned for RangeOperand<'a>

source§

impl<'a> Spanned for rustfmt_nightly::stmt::Stmt<'a>