StrExt

Trait StrExt 

Source
pub trait StrExt: Sealed {
    // Required method
    fn line_indices(&self) -> LineIndices<'_>;
}

Required Methods§

Source

fn line_indices(&self) -> LineIndices<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StrExt for str

Source§

fn line_indices(&self) -> LineIndices<'_>

Source§

impl StrExt for String

Available on crate feature alloc only.
Source§

fn line_indices(&self) -> LineIndices<'_>

Implementors§