#[repr(transparent)]pub(super) struct Repr(NonNull<()>, PhantomData<ErrorData<CustomOwner>>);🔬This is a nightly-only experimental API. (
core_io #154046)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<()>🔬This is a nightly-only experimental API. (
§core_io #154046)1: PhantomData<ErrorData<CustomOwner>>🔬This is a nightly-only experimental API. (
core_io #154046)Implementations§
Source§impl Repr
impl Repr
pub(super) fn new_custom(b: CustomOwner) -> Self
🔬This is a nightly-only experimental API. (
core_io #154046)pub(super) fn new_os(code: RawOsError) -> Self
🔬This is a nightly-only experimental API. (
core_io #154046)pub(super) fn new_simple(kind: ErrorKind) -> Self
🔬This is a nightly-only experimental API. (
core_io #154046)pub(super) const fn new_simple_message(m: &'static SimpleMessage) -> Self
🔬This is a nightly-only experimental API. (
core_io #154046)pub(super) fn data(&self) -> ErrorData<&Custom>
🔬This is a nightly-only experimental API. (
core_io #154046)pub(super) fn data_mut(&mut self) -> ErrorData<&mut Custom>
🔬This is a nightly-only experimental API. (
core_io #154046)pub(super) fn into_data(self) -> ErrorData<CustomOwner>
🔬This is a nightly-only experimental API. (
core_io #154046)Trait Implementations§
impl Send for Repr
impl Sync for Repr
Auto Trait Implementations§
impl !RefUnwindSafe for Repr
impl !UnwindSafe for Repr
impl Freeze for Repr
impl Unpin for Repr
impl UnsafeUnpin for Repr
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> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type #102070)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