usecore::str::Utf8Error;#[derive(Copy, Clone, Debug, Eq, PartialEq)]pubenumError{/// The stringlet is too long to fit in the given size.
TooLong,/// The stringlet is too short to be valid.
TooShort,
Utf8Error(Utf8Error),}implFrom<Utf8Error>forError{fnfrom(e: Utf8Error)->Self{Self::Utf8Error(e)}}