pub enum FixedUtf8Error {
TooManyBytes {
max: usize,
found: usize,
},
InvalidUtf8,
}Available on crate features
text_fixed and text_utf8 only.Expand description
Errors for fixed UTF-8 byte storage.
Variants§
TooManyBytes
Input had more than N bytes (after encoding), so it can’t fit.
InvalidUtf8
Input bytes are not valid UTF-8.
Trait Implementations§
Source§impl Clone for FixedUtf8Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Clone for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn clone(&self) -> FixedUtf8Error
fn clone(&self) -> FixedUtf8Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixedUtf8Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Debug for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl Display for FixedUtf8Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Display for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl From<FixedUtf8Error> for FixedTextError
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl From<FixedUtf8Error> for FixedTextError
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(e: FixedUtf8Error) -> Self
fn from(e: FixedUtf8Error) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FixedUtf8Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl PartialEq for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl Copy for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl Eq for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl StructuralPartialEq for FixedUtf8Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Auto Trait Implementations§
impl Freeze for FixedUtf8Error
impl RefUnwindSafe for FixedUtf8Error
impl Send for FixedUtf8Error
impl Sync for FixedUtf8Error
impl Unpin for FixedUtf8Error
impl UnwindSafe for FixedUtf8Error
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