pub trait Spannable { // Required method fn span(&self) -> Span; // Provided method fn set_span(&mut self, _span: Span) { ... } }
Trait for objects that provide Span information. Used for error messaging.
Span
Get the Span of the object
Set the Span of the object. Possibly does nothing as implementation is optional.