pub enum FixedUtf16Error {
WrongCodeUnitCount {
expected: usize,
found: usize,
},
InvalidUtf16,
}Available on crate feature
text_fixed and (crate features text_fixed or text_utf16 or text_utf32 or text_utf8) only.Expand description
Errors for fixed UTF-16 code-unit storage.
Variants§
WrongCodeUnitCount
Input had the wrong number of UTF-16 code units.
InvalidUtf16
Input code units are not valid UTF-16.
Trait Implementations§
Source§impl Clone for FixedUtf16Error
impl Clone for FixedUtf16Error
Source§fn clone(&self) -> FixedUtf16Error
fn clone(&self) -> FixedUtf16Error
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FixedUtf16Error
Source§impl Debug for FixedUtf16Error
impl Debug for FixedUtf16Error
Source§impl Display for FixedUtf16Error
impl Display for FixedUtf16Error
impl Eq for FixedUtf16Error
Source§impl Error for FixedUtf16Error
Available on crate features io-std or io only.
impl Error for FixedUtf16Error
Available on crate features
io-std or io only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FixedUtf16Error> for FixedTextError
Available on crate feature text_utf16 only.
impl From<FixedUtf16Error> for FixedTextError
Available on crate feature
text_utf16 only.Source§fn from(e: FixedUtf16Error) -> Self
fn from(e: FixedUtf16Error) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FixedUtf16Error
impl PartialEq for FixedUtf16Error
Source§fn eq(&self, other: &FixedUtf16Error) -> bool
fn eq(&self, other: &FixedUtf16Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FixedUtf16Error
Auto Trait Implementations§
impl Freeze for FixedUtf16Error
impl RefUnwindSafe for FixedUtf16Error
impl Send for FixedUtf16Error
impl Sync for FixedUtf16Error
impl Unpin for FixedUtf16Error
impl UnsafeUnpin for FixedUtf16Error
impl UnwindSafe for FixedUtf16Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more