Trait CharCountProperty

Source
pub trait CharCountProperty {
    // Required method
    fn char_count_property(&self) -> usize;
}
Expand description

Property for types that contain characters.

Required Methods§

Source

fn char_count_property(&self) -> usize

Returns the number of characters contained in this type.

Implementations on Foreign Types§

Source§

impl CharCountProperty for &str

Source§

impl CharCountProperty for String

Source§

impl<T> CharCountProperty for &T

Source§

impl<T> CharCountProperty for &mut T

Implementors§