picky_asn1::restricted_string

Type Alias Ia5String

Source
pub type Ia5String = RestrictedString<Ia5CharSet>;

Aliased Type§

struct Ia5String { /* private fields */ }

Implementations§

Source§

impl Ia5String

Source

pub fn from_string(s: String) -> Result<Self, CharSetError>

Source

pub fn as_utf8(&self) -> &str

Source

pub fn into_string(self) -> String

Trait Implementations§

Source§

impl From<GeneralStringAsn1> for Ia5String

Source§

fn from(wrapper: GeneralStringAsn1) -> Ia5String

Converts to this type from the input type.
Source§

impl From<Ia5StringAsn1> for Ia5String

Source§

fn from(wrapper: Ia5StringAsn1) -> Ia5String

Converts to this type from the input type.
Source§

impl FromStr for Ia5String

Source§

type Err = CharSetError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more