pub trait TextLen: Copy + Sealed {
    // Required method
    fn text_len(self) -> TextSize;
}
Expand description

Primitives with a textual length that can be passed to TextSize::of.

Required Methods§

fn text_len(self) -> TextSize

The textual length of this primitive.

Implementations on Foreign Types§

§

impl TextLen for char

§

fn text_len(self) -> TextSize

§

impl TextLen for &String

§

fn text_len(self) -> TextSize

§

impl TextLen for &str

§

fn text_len(self) -> TextSize

Implementors§