#[repr(transparent)]pub(super) struct Repr(NonNull<()>, PhantomData<ErrorData<Box<Custom>>>);
Expand description
The internal representation.
See the module docs for more, this is just a way to hack in a check that we indeed are not unwind-safe.
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more