pub enum SlicePtrErr {
OutOfRange,
NotAlignedWith,
}Expand description
Errors that can occur when working with slice pointers.
This is used in pointer ID validation in EntityAlloc.
Variants§
OutOfRange
The pointer is out of the valid address range of the slice.
NotAlignedWith
The pointer is not aligned with the start of any unit in the slice.
Trait Implementations§
Source§impl Debug for SlicePtrErr
impl Debug for SlicePtrErr
Source§impl Display for SlicePtrErr
impl Display for SlicePtrErr
Source§impl Error for SlicePtrErr
impl Error for SlicePtrErr
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()
Auto Trait Implementations§
impl Freeze for SlicePtrErr
impl RefUnwindSafe for SlicePtrErr
impl Send for SlicePtrErr
impl Sync for SlicePtrErr
impl Unpin for SlicePtrErr
impl UnwindSafe for SlicePtrErr
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