Type Alias picky_asn1::restricted_string::Utf8String
source · pub type Utf8String = RestrictedString<Utf8CharSet>;
Aliased Type§
struct Utf8String { /* private fields */ }
Implementations§
source§impl Utf8String
impl Utf8String
pub fn from_string(s: String) -> Result<Self, CharSetError>
pub fn as_utf8(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
source§impl From<Utf8StringAsn1> for Utf8String
impl From<Utf8StringAsn1> for Utf8String
source§fn from(wrapper: Utf8StringAsn1) -> Utf8String
fn from(wrapper: Utf8StringAsn1) -> Utf8String
Converts to this type from the input type.