pub trait CharSet {
    const NAME: &'static str;

    // Required method
    fn check(data: &[u8]) -> bool;
}

Required Associated Constants§

source

const NAME: &'static str

Required Methods§

source

fn check(data: &[u8]) -> bool

Checks whether a sequence is a valid string or not.

Implementors§

source§

impl CharSet for BmpCharSet

source§

const NAME: &'static str = "BMP"

source§

impl CharSet for Ia5CharSet

source§

const NAME: &'static str = "IA5"

source§

impl CharSet for NumericCharSet

source§

const NAME: &'static str = "NUMERIC"

source§

impl CharSet for PrintableCharSet

source§

const NAME: &'static str = "PRINTABLE"

source§

impl CharSet for Utf8CharSet

source§

const NAME: &'static str = "UTF8"