#[derive(Zeroable)]Expand description
Derives the Zeroable trait for the given struct or union.
This can only be used for structs/unions where every field implements the Zeroable
trait.
ยงExamples
use pin_init::Zeroable;
#[derive(Zeroable)]
pub struct DriverData {
pub(crate) id: i64,
buf_ptr: *mut u8,
len: usize,
}use pin_init::Zeroable;
#[derive(Zeroable)]
pub union SignCast {
signed: i64,
unsigned: u64,
}