Skip to main content

## 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 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 WherePredicate

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 Box<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 rustfmt_nightly::stmt::Stmt<'a>

Source§

### impl<'a, T> Spanned for RangeOperand<'a, T>