Enum MutableBufferError
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§
§impl Clone for MutableBufferError
impl Clone for MutableBufferError
§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 more§impl Debug for MutableBufferError
impl Debug for MutableBufferError
§impl Display for MutableBufferError
impl Display for MutableBufferError
impl Eq for MutableBufferError
§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()
§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.