use fmt;
/// Error returned when decoding invalid UTF-16 data.
///
/// This is a crate-local equivalent of `std::string::FromUtf16Error`, which cannot be
/// constructed outside of std.
///
/// Returned by [`super::SmartString::from_utf16be`], [`super::SmartString::from_utf16le`], and their variants.