enum FromRawReprsError<E> {
Single(E),
Conflict,
}Expand description
The error from extracting a high-level repr type from a list of RawReprs.
Variants§
Single(E)
One of the RawReprs is invalid for the high-level repr we’re parsing
(e.g. there’s a packed repr and we’re parsing an AlignRepr for an
enum type).
Conflict
Two RawReprs appear which both affect the high-level repr we’re
parsing (e.g., the list is #[repr(align(2), packed)]). Note that we
conservatively treat redundant reprs as conflicting (e.g.
#[repr(packed, packed)]).
Trait Implementations§
Source§impl From<FromRawReprsError<UnsupportedReprError>> for FromAttrsError
impl From<FromRawReprsError<UnsupportedReprError>> for FromAttrsError
Source§fn from(err: FromRawReprsError<UnsupportedReprError>) -> FromAttrsError
fn from(err: FromRawReprsError<UnsupportedReprError>) -> FromAttrsError
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for FromRawReprsError<E>where
E: Freeze,
impl<E> RefUnwindSafe for FromRawReprsError<E>where
E: RefUnwindSafe,
impl<E> Send for FromRawReprsError<E>where
E: Send,
impl<E> Sync for FromRawReprsError<E>where
E: Sync,
impl<E> Unpin for FromRawReprsError<E>where
E: Unpin,
impl<E> UnwindSafe for FromRawReprsError<E>where
E: UnwindSafe,
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