[][src]Trait valid::property::HasCharCount

pub trait HasCharCount {
    fn char_count(&self) -> usize;
}

The number of characters property of a type.

Counts the number of contained characters. The character count may be different from the length if any character occupies more than one byte in memory.

This is usually a property of a container of chars like String, Vec<char> or &[char]

Required methods

fn char_count(&self) -> usize

Returns the number of characters.

Loading content...

Implementations on Foreign Types

impl HasCharCount for String[src]

impl<'_> HasCharCount for &'_ str[src]

impl HasCharCount for Vec<char>[src]

impl<'_> HasCharCount for &'_ [char][src]

Loading content...

Implementors

Loading content...