Skip to main content

SourceIndex

Trait SourceIndex 

Source
pub trait SourceIndex: Sealed {
    // Required method
    fn get<'i>(self, source: &Source<'i>) -> Option<Raw<'i>>;
}
Expand description

A helper trait used for indexing operations on Source

Required Methods§

Source

fn get<'i>(self, source: &Source<'i>) -> Option<Raw<'i>>

Return a subslice of the input

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§