SourceRangeMixinExt

Trait SourceRangeMixinExt 

Source
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§

Source

fn into_wrapper<W>( self, wrapper: &SourceRangeMixin<W>, ) -> SourceRangeMixin<Self>
where Self: Sized,

Creates a new SourceRangeMixin with the same span as a wrapper.

Source

fn into_wrapper_range(self, range: Range<usize>) -> SourceRangeMixin<Self>
where Self: Sized,

Creates a new SourceRangeMixin with a given range.

Source

fn into_wrapper_span(self, span: (usize, usize)) -> SourceRangeMixin<Self>
where Self: Sized,

Creates a new SourceRangeMixin with a given (start, end) span.

Implementors§