pub trait Spanned {
// Required method
fn span(&self) -> Span;
}
Expand description
Types for which we can get a span.
Required Methods§
Implementations on Foreign Types§
Implementors§
impl Spanned for BinOp
impl Spanned for Condition
impl Spanned for Expr
impl Spanned for ExprClosureArgs
impl Spanned for ExprField
impl Spanned for ExprRangeLimits
impl Spanned for ExprSelectBranch
impl Spanned for FnArg
impl Spanned for Item
impl Spanned for ItemModBody
impl Spanned for ItemUseSegment
impl Spanned for Lit
impl Spanned for ObjectIdent
impl Spanned for ObjectKey
impl Spanned for Pat
impl Spanned for PathSegment
impl Spanned for Stmt
impl Spanned for UnOp
impl Spanned for Error
impl Spanned for Location
impl Spanned for WarningDiagnostic
impl Spanned for WorkspaceError
Available on crate feature
workspace
only.