pub enum CopyError {
OutOfMemory,
OffsetOutOfBounds,
InvalidLayout,
}Expand description
An error that may occur during a copy operation.
Variants§
OutOfMemory
Copy would exceed the end of the allocation
OffsetOutOfBounds
Requested to copy to an offset outside the bounds of the allocation
InvalidLayout
Computed invalid layout for copy operation, probably caused by incredibly large size, offset, or min-alignment parameters
Trait Implementations§
Source§impl From<LayoutError> for CopyError
impl From<LayoutError> for CopyError
Source§fn from(_err: LayoutError) -> Self
fn from(_err: LayoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CopyError
impl RefUnwindSafe for CopyError
impl Send for CopyError
impl Sync for CopyError
impl Unpin for CopyError
impl UnsafeUnpin for CopyError
impl UnwindSafe for CopyError
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