// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//! Error type for the byte-oriented UTF-16 string constructors.
use fmt;
/// Error from the byte-oriented UTF-16 string constructors.
///
/// Returned by
/// [`Arena::alloc_string_from_utf16le`](crate::Arena::alloc_string_from_utf16le)
/// and friends when the input byte slice is not valid UTF-16 — either it had
/// an odd length, or it contained an unpaired surrogate. The arena-bound
/// analog of [`std::string::FromUtf16Error`].
);