Skip to main content

StrSliceIndex

Trait StrSliceIndex 

Source
pub trait StrSliceIndex<T> {
    // Required method
    fn index(&self, index: T) -> StrSlice;
}
Expand description

Trait for indexing a StrSlice (using the StrSlice::get method)

Required Methods§

Source

fn index(&self, index: T) -> StrSlice

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§