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".

Implementations on Foreign Types§

Source§

impl CharLen for String

Source§

fn char_len(&self) -> usize

Implementors§