Skip to main content

CharLen

Trait CharLen 

Source
pub trait CharLen {
    // Required method
    fn char_len(&self) -> usize;
}

Required Methods§

Source

fn char_len(&self) -> usize

Returns the number of characters in the text

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§