pub struct SliceError<'a, 'borrow, B>where
B: Backend,{ /* private fields */ }Expand description
A possible error value when slicing a HipByt.
This type is the error type for HipByt::try_slice.
Implementations§
Source§impl<'a, B> SliceError<'_, 'a, B>where
B: Backend,
impl<'a, B> SliceError<'_, 'a, B>where
B: Backend,
Sourcepub const fn kind(&self) -> SliceErrorKind
pub const fn kind(&self) -> SliceErrorKind
Returns the kind of error.
Trait Implementations§
Source§impl<B> Clone for SliceError<'_, '_, B>where
B: Backend,
impl<B> Clone for SliceError<'_, '_, B>where
B: Backend,
Source§impl<B> Debug for SliceError<'_, '_, B>where
B: Backend,
impl<B> Debug for SliceError<'_, '_, B>where
B: Backend,
Source§impl<B> Display for SliceError<'_, '_, B>where
B: Backend,
impl<B> Display for SliceError<'_, '_, B>where
B: Backend,
Source§impl<B> Error for SliceError<'_, '_, B>where
B: Backend,
impl<B> Error for SliceError<'_, '_, B>where
B: Backend,
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<B> PartialEq for SliceError<'_, '_, B>where
B: Backend,
impl<B> PartialEq for SliceError<'_, '_, B>where
B: Backend,
impl<B> Copy for SliceError<'_, '_, B>where
B: Backend,
impl<B> Eq for SliceError<'_, '_, B>where
B: Backend,
Auto Trait Implementations§
impl<'a, 'borrow, B> Freeze for SliceError<'a, 'borrow, B>
impl<'a, 'borrow, B> RefUnwindSafe for SliceError<'a, 'borrow, B>where
B: RefUnwindSafe,
impl<'a, 'borrow, B> Send for SliceError<'a, 'borrow, B>where
B: Sync,
impl<'a, 'borrow, B> Sync for SliceError<'a, 'borrow, B>where
B: Sync,
impl<'a, 'borrow, B> Unpin for SliceError<'a, 'borrow, B>
impl<'a, 'borrow, B> UnsafeUnpin for SliceError<'a, 'borrow, B>
impl<'a, 'borrow, B> UnwindSafe for SliceError<'a, 'borrow, B>where
B: RefUnwindSafe,
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