pub(crate) enum Err {
Unspecified,
UnknownLayout,
SizeOverflow,
TypeError(ErrorGuaranteed),
}
Variants§
Unspecified
The layout of the type is unspecified.
UnknownLayout
This error will be surfaced elsewhere by rustc, so don’t surface it.
SizeOverflow
Overflow size
TypeError(ErrorGuaranteed)
Trait Implementations§
source§impl<'tcx> From<&LayoutError<'tcx>> for Err
impl<'tcx> From<&LayoutError<'tcx>> for Err
source§fn from(err: &LayoutError<'tcx>) -> Self
fn from(err: &LayoutError<'tcx>) -> Self
Converts to this type from the input type.
impl Copy for Err
Auto Trait Implementations§
impl RefUnwindSafe for Err
impl Send for Err
impl Sync for Err
impl Unpin for Err
impl UnwindSafe for Err
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Unspecified
: 0 bytesUnknownLayout
: 0 bytesSizeOverflow
: 0 bytesTypeError
: 0 bytes