pub enum CopyError<S, D> {
OutOfSrcBounds {
size: S,
copy_end: S,
},
OutOfDstBounds {
size: D,
copy_end: D,
},
Overlap {
src_offset: usize,
dst_offset: usize,
size: usize,
},
NoSrcBindFlag,
NoDstBindFlag,
}
Expand description
An error occuring in memory copies.
Variants§
Trait Implementations§
Source§impl<S, D> Error for CopyError<S, D>
impl<S, D> Error for CopyError<S, D>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
impl<S, D> StructuralPartialEq for CopyError<S, D>
Auto Trait Implementations§
impl<S, D> Freeze for CopyError<S, D>
impl<S, D> RefUnwindSafe for CopyError<S, D>where
S: RefUnwindSafe,
D: RefUnwindSafe,
impl<S, D> Send for CopyError<S, D>
impl<S, D> Sync for CopyError<S, D>
impl<S, D> Unpin for CopyError<S, D>
impl<S, D> UnwindSafe for CopyError<S, D>where
S: UnwindSafe,
D: UnwindSafe,
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