pub enum ByteBufferError {
MaxCapacity,
AllocationFailure {
size: usize,
},
LayoutFailure {
size: usize,
},
MinCapacity,
CursorOutOfBounds {
length: usize,
cursor: usize,
},
ReadOutOfBounds {
length: usize,
start: usize,
end: usize,
},
LengthOutOfBounds {
current: usize,
new: usize,
},
OtherError {
error: String,
},
UnicodeError(Utf8Error),
RefCellAlreadyBorrowed {
error: String,
type_name: &'static str,
},
NonZeroIsZero,
NotAChar,
}
Variants§
MaxCapacity
AllocationFailure
LayoutFailure
MinCapacity
CursorOutOfBounds
ReadOutOfBounds
LengthOutOfBounds
OtherError
UnicodeError(Utf8Error)
RefCellAlreadyBorrowed
Fields
NonZeroIsZero
NotAChar
Trait Implementations§
Source§impl Debug for ByteBufferError
impl Debug for ByteBufferError
Source§impl Display for ByteBufferError
impl Display for ByteBufferError
Source§impl Error for ByteBufferError
impl Error for ByteBufferError
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<Utf8Error> for ByteBufferError
impl From<Utf8Error> for ByteBufferError
Source§impl PartialEq for ByteBufferError
impl PartialEq for ByteBufferError
impl Eq for ByteBufferError
impl StructuralPartialEq for ByteBufferError
Auto Trait Implementations§
impl Freeze for ByteBufferError
impl RefUnwindSafe for ByteBufferError
impl Send for ByteBufferError
impl Sync for ByteBufferError
impl Unpin for ByteBufferError
impl UnwindSafe for ByteBufferError
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