pub enum ByteEditError {
Range(RangeOutOfBounds),
Capacity(TryPutError),
}Expand description
Error returned by raw byte editing operations.
Variants§
Range(RangeOutOfBounds)
The requested byte range was invalid for the visible buffer contents.
Capacity(TryPutError)
The replacement cannot fit in a fixed-capacity buffer.
Trait Implementations§
Source§impl Debug for ByteEditError
impl Debug for ByteEditError
Source§impl Display for ByteEditError
impl Display for ByteEditError
impl Eq for ByteEditError
Source§impl Error for ByteEditError
impl Error for ByteEditError
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<RangeOutOfBounds> for ByteEditError
impl From<RangeOutOfBounds> for ByteEditError
Source§fn from(value: RangeOutOfBounds) -> Self
fn from(value: RangeOutOfBounds) -> Self
Converts to this type from the input type.
Source§impl From<TryPutError> for ByteEditError
impl From<TryPutError> for ByteEditError
Source§fn from(value: TryPutError) -> Self
fn from(value: TryPutError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ByteEditError
impl PartialEq for ByteEditError
impl StructuralPartialEq for ByteEditError
Auto Trait Implementations§
impl Freeze for ByteEditError
impl RefUnwindSafe for ByteEditError
impl Send for ByteEditError
impl Sync for ByteEditError
impl Unpin for ByteEditError
impl UnsafeUnpin for ByteEditError
impl UnwindSafe for ByteEditError
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.