// Note(Lokathor): This is the neat part!! unsafeimpl<T: PodInOption> Pod for Option<T> {}
/// Trait for types which are [Pod](Pod) when wrapped in /// [Option](core::option::Option). /// /// ## Safety /// /// * `Option<T>` must uphold the same invariants as [Pod](Pod). /// * **Reminder:** pointers are **not** pod! **Do not** mix this trait with a /// newtype over [NonNull](core::ptr::NonNull). pubunsafetrait PodInOption: ZeroableInOption + Copy + 'static {}
unsafeimpl PodInOption for NonZeroI8 {} unsafeimpl PodInOption for NonZeroI16 {} unsafeimpl PodInOption for NonZeroI32 {} unsafeimpl PodInOption for NonZeroI64 {} unsafeimpl PodInOption for NonZeroI128 {} unsafeimpl PodInOption for NonZeroIsize {} unsafeimpl PodInOption for NonZeroU8 {} unsafeimpl PodInOption for NonZeroU16 {} unsafeimpl PodInOption for NonZeroU32 {} unsafeimpl PodInOption for NonZeroU64 {} unsafeimpl PodInOption for NonZeroU128 {} unsafeimpl PodInOption for NonZeroUsize {}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.