Trait wagon_parser::WrapSpannable
source · pub trait WrapSpannable<T: Parse, U> {
// Required method
fn wrap_spannable(self) -> U;
// Provided method
fn into_spanned(self, _span: Span) -> U
where Self: Sized { ... }
}
Expand description
A trait for internal use to automatically convert between nodes and SpannableNode
.
Required Methods§
sourcefn wrap_spannable(self) -> U
fn wrap_spannable(self) -> U
Wrap dummy span information around the node.
Provided Methods§
sourcefn into_spanned(self, _span: Span) -> Uwhere
Self: Sized,
fn into_spanned(self, _span: Span) -> Uwhere
Self: Sized,
Convert the node into a SpannableNode
with the specified Span
.