pub enum MutableBufferError {
LengthOverflow,
LayoutError,
AllocationError(Layout),
}Expand description
Error returned by fallible MutableBuffer operations.
Variants§
LengthOverflow
Arithmetic overflow when computing the required buffer length or capacity.
LayoutError
The requested capacity cannot be represented as a valid allocation layout.
AllocationError(Layout)
An allocation failed due to insufficient memory.
Trait Implementations§
Source§impl Clone for MutableBufferError
impl Clone for MutableBufferError
Source§fn clone(&self) -> MutableBufferError
fn clone(&self) -> MutableBufferError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MutableBufferError
impl Debug for MutableBufferError
Source§impl Display for MutableBufferError
impl Display for MutableBufferError
impl Eq for MutableBufferError
Source§impl Error for MutableBufferError
impl Error for MutableBufferError
1.30.0 · 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 PartialEq for MutableBufferError
impl PartialEq for MutableBufferError
impl StructuralPartialEq for MutableBufferError
Auto Trait Implementations§
impl Freeze for MutableBufferError
impl RefUnwindSafe for MutableBufferError
impl Send for MutableBufferError
impl Sync for MutableBufferError
impl Unpin for MutableBufferError
impl UnsafeUnpin for MutableBufferError
impl UnwindSafe for MutableBufferError
Blanket Implementations§
impl<T> Allocation for T
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