pub enum Utf8EditError {
Index(Utf8IndexError),
Capacity(TryPutError),
}Expand description
Error type for fixed-capacity UTF-8 editing operations.
Variants§
Index(Utf8IndexError)
The requested index or range is invalid.
Capacity(TryPutError)
The replacement cannot fit in the fixed-capacity buffer.
Trait Implementations§
Source§impl Debug for Utf8EditError
impl Debug for Utf8EditError
Source§impl Display for Utf8EditError
impl Display for Utf8EditError
impl Eq for Utf8EditError
Source§impl Error for Utf8EditError
impl Error for Utf8EditError
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<TryPutError> for Utf8EditError
impl From<TryPutError> for Utf8EditError
Source§fn from(value: TryPutError) -> Self
fn from(value: TryPutError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8IndexError> for Utf8EditError
impl From<Utf8IndexError> for Utf8EditError
Source§fn from(value: Utf8IndexError) -> Self
fn from(value: Utf8IndexError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Utf8EditError
impl PartialEq for Utf8EditError
impl StructuralPartialEq for Utf8EditError
Auto Trait Implementations§
impl Freeze for Utf8EditError
impl RefUnwindSafe for Utf8EditError
impl Send for Utf8EditError
impl Sync for Utf8EditError
impl Unpin for Utf8EditError
impl UnsafeUnpin for Utf8EditError
impl UnwindSafe for Utf8EditError
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.