pub trait SpanExt: Spanned {
fn is_synthesized(&self) -> bool { ... }
fn starts_on_new_line(&self, format: ListFormat) -> bool { ... }
fn comment_range(&self) -> Span { ... }
}
Available on crate feature
visit
only.Provided Methods
source
fn is_synthesized(&self) -> bool
source
fn starts_on_new_line(&self, format: ListFormat) -> bool
sourcefn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.