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.