Skip to main content

CharRangeExt

Trait CharRangeExt 

Source
pub trait CharRangeExt {
    // Required method
    fn full(text: &str) -> Self;
}
Available on crate feature egui only.
Expand description

Extension methods for a CharRange.

Required Methods§

Source

fn full(text: &str) -> Self

The full character range covering text, i.e. 0..text.chars().count().

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl CharRangeExt for Range<CharIndex>

Source§

fn full(text: &str) -> Range<CharIndex> ⓘ

Implementors§