1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::asn1_string;
use crate::Result;
use crate::TestValidCharset;
#[cfg(not(feature = "std"))]
use alloc::string::String;

asn1_string!(Utf8String);

impl<'a> TestValidCharset for Utf8String<'a> {
    fn test_valid_charset(i: &[u8]) -> Result<()> {
        let _ = core::str::from_utf8(i)?;
        Ok(())
    }
}