#[repr(transparent)]pub struct NotPod<T>(pub T);Expand description
Strips T of its status as Plain Old Data.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: IStable> IStable for NotPod<T>
impl<T: IStable> IStable for NotPod<T>
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64
const ID: u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ContainsIndirections = B1
type ContainsIndirections = B1
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
Source§type ForbiddenValues = <T as IStable>::ForbiddenValues
type ForbiddenValues = <T as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type HasExactlyOneNiche = <T as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <T as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type UnusedBits = <T as IStable>::UnusedBits
type UnusedBits = <T as IStable>::UnusedBits
The padding bits in the annotated types
Source§impl<T: Ord> Ord for NotPod<T>
impl<T: Ord> Ord for NotPod<T>
Source§impl<T: PartialOrd> PartialOrd for NotPod<T>
impl<T: PartialOrd> PartialOrd for NotPod<T>
impl<T: Copy> Copy for NotPod<T>
impl<T: Eq> Eq for NotPod<T>
impl<T> StructuralPartialEq for NotPod<T>
Auto Trait Implementations§
impl<T> Freeze for NotPod<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotPod<T>where
T: RefUnwindSafe,
impl<T> Send for NotPod<T>where
T: Send,
impl<T> Sync for NotPod<T>where
T: Sync,
impl<T> Unpin for NotPod<T>where
T: Unpin,
impl<T> UnwindSafe for NotPod<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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