pub enum Utf8FormatError {
Capacity(TryPutError),
Formatter(Error),
}Expand description
Error returned by fallible formatting into a fixed UTF-8 buffer.
Variants§
Capacity(TryPutError)
Formatting exceeded the fixed buffer’s remaining capacity.
Formatter(Error)
The formatter returned an error unrelated to capacity.
Trait Implementations§
Source§impl Debug for Utf8FormatError
impl Debug for Utf8FormatError
Source§impl Display for Utf8FormatError
impl Display for Utf8FormatError
impl Eq for Utf8FormatError
Source§impl Error for Utf8FormatError
impl Error for Utf8FormatError
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<Error> for Utf8FormatError
impl From<Error> for Utf8FormatError
Source§impl From<TryPutError> for Utf8FormatError
impl From<TryPutError> for Utf8FormatError
Source§fn from(value: TryPutError) -> Self
fn from(value: TryPutError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Utf8FormatError
impl PartialEq for Utf8FormatError
impl StructuralPartialEq for Utf8FormatError
Auto Trait Implementations§
impl Freeze for Utf8FormatError
impl RefUnwindSafe for Utf8FormatError
impl Send for Utf8FormatError
impl Sync for Utf8FormatError
impl Unpin for Utf8FormatError
impl UnsafeUnpin for Utf8FormatError
impl UnwindSafe for Utf8FormatError
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
Source§impl<T> ToUtf8Bytes for T
impl<T> ToUtf8Bytes for T
Source§fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
Available on crate features
alloc or std only.Source§fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
Available on crate features
alloc or std only.