pub trait OptionSpanned {
// Required method
fn option_span(&self) -> Option<Span>;
}
Expand description
Types for which we can optionally get a span.
Required Methods§
Sourcefn option_span(&self) -> Option<Span>
fn option_span(&self) -> Option<Span>
Get the optional span of the type.
Implementations on Foreign Types§
Source§impl<T> OptionSpanned for Option<T>where
T: Spanned,
impl<T> OptionSpanned for Option<T>where
T: Spanned,
fn option_span(&self) -> Option<Span>
Source§impl<T> OptionSpanned for [T]where
T: Spanned,
impl<T> OptionSpanned for [T]where
T: Spanned,
Take the span of a vector of spanned. Provides the span between the first and the last element.