pub trait SourceRangeMixinExt {
// Provided methods
fn into_wrapper<W>(
self,
wrapper: &SourceRangeMixin<W>,
) -> SourceRangeMixin<Self>
where Self: Sized { ... }
fn into_wrapper_range(self, range: Range<usize>) -> SourceRangeMixin<Self>
where Self: Sized { ... }
fn into_wrapper_span(self, span: (usize, usize)) -> SourceRangeMixin<Self>
where Self: Sized { ... }
}
Expand description
Extension methods for SourceRangeMixin
.
Provided Methods§
Sourcefn into_wrapper<W>(
self,
wrapper: &SourceRangeMixin<W>,
) -> SourceRangeMixin<Self>where
Self: Sized,
fn into_wrapper<W>(
self,
wrapper: &SourceRangeMixin<W>,
) -> SourceRangeMixin<Self>where
Self: Sized,
Creates a new SourceRangeMixin
with the same span as a wrapper.
Sourcefn into_wrapper_range(self, range: Range<usize>) -> SourceRangeMixin<Self>where
Self: Sized,
fn into_wrapper_range(self, range: Range<usize>) -> SourceRangeMixin<Self>where
Self: Sized,
Creates a new SourceRangeMixin
with a given range.
Sourcefn into_wrapper_span(self, span: (usize, usize)) -> SourceRangeMixin<Self>where
Self: Sized,
fn into_wrapper_span(self, span: (usize, usize)) -> SourceRangeMixin<Self>where
Self: Sized,
Creates a new SourceRangeMixin
with a given (start, end) span.