Searched refs:Zeroable (Results 1 – 11 of 11) sorted by relevance
| /linux/rust/pin-init/src/ |
| H A D | lib.rs | 428 pub use ::pin_init_internal::Zeroable; 1481 pub unsafe trait Zeroable { trait 1530 unsafe impl<T: ZeroableOption> Zeroable for Option<T> {} 1546 pub fn init_zeroed<T: Zeroable>() -> impl Init<T> { in init_zeroed() 1577 pub const fn zeroed<T: Zeroable>() -> T { in zeroed() 1585 $(unsafe impl$($($generics)*)? Zeroable for $t {})* 1611 {<T: ?Sized + Zeroable>} UnsafeCell<T>, 1634 {<const N: usize, T: Zeroable>} [T; N], {<T: Zeroable>} Wrapping<T>, 1641 unsafe impl<$first: Zeroable, $($t: Zeroable),*> Zeroable for ($first, $($t),*) {} impl
|
| H A D | macros.rs | |
| /linux/rust/macros/ |
| H A D | zeroable.rs | |
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | 17 return Err(dcx.error(data_enum.enum_token, "cannot derive `Zeroable` for an enum")); in parse_zeroable_derive_input() 23 param.bounds.insert(0, parse_quote!(::pin_init::Zeroable)); in parse_zeroable_derive_input() 28 // SAFETY: Every field type implements `Zeroable` and padding bytes may be zero. in parse_zeroable_derive_input() 30 unsafe impl #impl_gen ::pin_init::Zeroable for #name #ty_gen in parse_zeroable_derive_input() 34 fn assert_zeroable<T: ?::core::marker::Sized + ::pin_init::Zeroable>() {} in parse_zeroable_derive_input() 54 return Err(dcx.error(data_enum.enum_token, "cannot derive `Zeroable` for an enum")); in parse_zeroable_derive_input() 60 param.bounds.insert(0, parse_quote!(::pin_init::Zeroable)); in parse_zeroable_derive_input() 68 .push(parse_quote!(#ty: for<'__dummy> ::pin_init::Zeroable)); in parse_zeroable_derive_input() 72 // SAFETY: Every field type implements `Zeroable` and padding bytes may be zero. in parse_zeroable_derive_input() 74 unsafe impl #impl_gen ::pin_init::Zeroable fo in parse_zeroable_derive_input() [all...] |
| H A D | lib.rs | 38 #[proc_macro_derive(Zeroable)] in pin_data()
|
| /linux/rust/kernel/ |
| H A D | types.rs | 12 use pin_init::{PinInit, Wrapper, Zeroable}; 329 unsafe impl<T> Zeroable for Opaque<T> {}
|
| H A D | prelude.rs | 30 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
|
| /linux/drivers/gpu/nova-core/gsp/fw/ |
| H A D | r570_144.rs | 34 unsafe impl<T> kernel::prelude::Zeroable for __IncompleteArrayField<T> {}
|
| /linux/rust/ |
| H A D | bindgen_parameters | 64 # Structs should implement `Zeroable` when all of their fields do.
|
| /linux/rust/kernel/num/ |
| H A D | bounded.rs | 1045 T: Integer + Zeroable, 1048 value.get() != Zeroable::zeroed() in from()
|
| /linux/drivers/gpu/nova-core/gsp/ |
| H A D | fw.rs | 795 ..Zeroable::init_zeroed() in init() 833 ..Zeroable::init_zeroed() in init()
|