picky_asn1::restricted_string

Trait CharSet

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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"