Docs.rs
  • bytemuck-1.13.1
    • bytemuck 1.13.1
    • Docs.rs crate page
    • Zlib OR Apache-2.0 OR MIT
    • Links
    • Repository
    • Crates.io
    • Source
    • Owners
    • Lokathor
    • github:rust-bus:maintainers
    • Dependencies
      • bytemuck_derive ^1.4 normal
    • Versions
    • 100% of the crate is documented
  • Platform
    • x86_64-unknown-linux-gnu
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • i686-pc-windows-msvc
    • x86_64-pc-windows-msvc
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

ZeroableInOption

Implementations on Foreign Types

  • &T
  • &mut T
  • Box<T>
  • NonNull<T>
  • NonZeroI128
  • NonZeroI16
  • NonZeroI32
  • NonZeroI64
  • NonZeroI8
  • NonZeroIsize
  • NonZeroU128
  • NonZeroU16
  • NonZeroU32
  • NonZeroU64
  • NonZeroU8
  • NonZeroUsize

Implementors

In bytemuck

?
Change settings

Trait bytemuck::ZeroableInOption

source ·
pub unsafe trait ZeroableInOption: Sized { }
Expand description

Trait for types which are Zeroable when wrapped in Option.

Safety

  • Option<YourType> must uphold the same invariants as Zeroable.

Implementations on Foreign Types§

source§

impl ZeroableInOption for NonZeroU64

source§

impl ZeroableInOption for NonZeroUsize

source§

impl ZeroableInOption for NonZeroIsize

source§

impl ZeroableInOption for NonZeroI64

source§

impl<T: ?Sized> ZeroableInOption for Box<T>

source§

impl<T: ?Sized> ZeroableInOption for NonNull<T>

source§

impl<T: ?Sized> ZeroableInOption for &T

source§

impl ZeroableInOption for NonZeroU32

source§

impl ZeroableInOption for NonZeroI8

source§

impl<T: ?Sized> ZeroableInOption for &mut T

source§

impl ZeroableInOption for NonZeroU8

source§

impl ZeroableInOption for NonZeroU128

source§

impl ZeroableInOption for NonZeroU16

source§

impl ZeroableInOption for NonZeroI32

source§

impl ZeroableInOption for NonZeroI128

source§

impl ZeroableInOption for NonZeroI16

Implementors§