#[repr(transparent)]pub(super) struct Repr(NonNull<()>, PhantomData<ErrorData<Box<Custom>>>);
Expand description
Tuple Fields§
§0: NonNull<()>
§1: PhantomData<ErrorData<Box<Custom>>>
Implementations§
source§impl Repr
impl Repr
pub(super) fn new(dat: ErrorData<Box<Custom>>) -> Self
pub(super) fn new_custom(b: Box<Custom>) -> Self
pub(super) fn new_os(code: RawOsError) -> Self
pub(super) fn new_simple(kind: ErrorKind) -> Self
pub(super) const fn new_simple_message(m: &'static SimpleMessage) -> Self
pub(super) fn data(&self) -> ErrorData<&Custom>
pub(super) fn data_mut(&mut self) -> ErrorData<&mut Custom>
pub(super) fn into_data(self) -> ErrorData<Box<Custom>>
Trait Implementations§
Auto Trait Implementations§
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