| /linux/rust/zerocopy-derive/ |
| H A D | lib.rs | 48 mod derive; module 81 macro_rules! derive { macro 121 derive!(KnownLayout => derive_known_layout => crate::derive::known_layout::derive); 122 derive!(Immutable => derive_immutable => crate::derive::derive_immutable); 123 derive!(TryFromBytes => derive_try_from_bytes => crate::derive::try_from_bytes::derive_try_from_byt… 124 derive!(FromZeros => derive_from_zeros => crate::derive::from_bytes::derive_from_zeros); 125 derive!(FromBytes => derive_from_bytes => crate::derive::from_bytes::derive_from_bytes); 126 derive!(IntoBytes => derive_into_bytes => crate::derive::into_bytes::derive_into_bytes); 127 derive!(Unaligned => derive_unaligned => crate::derive::unaligned::derive_unaligned); 128 derive!(ByteHash => derive_hash => crate::derive::derive_hash); [all …]
|
| H A D | README.md | 1 # `zerocopy-derive` 3 These source files come from the Rust `zerocopy-derive` crate, version v0.8.54
|
| H A D | repr.rs | 28 #[cfg_attr(test, derive(Copy, Clone, Debug))] 38 #[cfg_attr(test, derive(Copy, Clone, Debug, Eq, PartialEq))] 46 #[derive(Copy, Clone)] 47 #[cfg_attr(test, derive(Debug, Eq, PartialEq))] 64 #[cfg_attr(test, derive(Copy, Clone, Debug, Eq, PartialEq))] 268 #[derive(Copy, Clone, PartialEq, Eq)] 269 #[cfg_attr(test, derive(Debug))] 292 #[cfg_attr(test, derive(Debug, Eq, PartialEq))] 303 #[cfg_attr(test, derive(Copy, Clone, Debug, Eq, PartialEq))] 368 #[cfg_attr(test, derive(Copy, Clone, Debug, Eq, PartialEq))] [all …]
|
| /linux/rust/zerocopy/src/ |
| H A D | macros.rs | 1264 #[derive(KnownLayout, Immutable, FromBytes, IntoBytes, PartialEq, Debug)] 1287 #[derive(IntoBytes)] in test_transmute() 1325 #[derive(FromBytes, IntoBytes, Immutable, PartialEq, Eq, Debug)] 1450 #[derive(FromBytes, IntoBytes, Debug, PartialEq)] in test_try_transmute() 1705 #[derive(Clone, Copy)] in test_cryptocorrosion_derive_traits() 1716 #[derive(Copy, Clone, Debug, PartialEq)] in test_cryptocorrosion_derive_traits() 1724 #[derive(Copy, Clone, Debug, PartialEq)] in test_cryptocorrosion_derive_traits() 1732 #[derive(Copy, Clone, Debug, PartialEq)] in test_cryptocorrosion_derive_traits() 1740 #[derive(Copy, Clone, Default)] in test_cryptocorrosion_derive_traits() 1750 #[derive(Copy, Clone, Default)] in test_cryptocorrosion_derive_traits() [all …]
|
| H A D | lib.rs | 6479 #[derive(Debug, Eq, PartialEq, FromBytes, IntoBytes, Unaligned, Immutable)] 6570 #[derive(KnownLayout)] in test_known_layout_derive() 6600 #[derive(KnownLayout)] in test_known_layout_derive() 6610 #[derive(KnownLayout)] in test_known_layout_derive() 6621 #[derive(KnownLayout)] in test_known_layout_derive() 6632 #[derive(KnownLayout)] in test_known_layout_derive() 6646 #[derive(KnownLayout)] in test_known_layout_derive() 6656 #[derive(KnownLayout)] in test_known_layout_derive() 6667 #[derive(KnownLayout)] in test_known_layout_derive() 6678 #[derive(KnownLayout)] in test_known_layout_derive() [all …]
|
| H A D | split_at.rs | 277 #[derive(Debug)] 960 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Debug)] in test_split_at() 1007 #[derive(FromBytes, KnownLayout, SplitAt, Immutable)] in test_split_at_overlapping() 1052 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Debug)] in test_split_at_via_methods() 1075 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Unaligned)] in test_split_at_via_unaligned()
|
| H A D | layout.rs | 31 #[cfg_attr(any(kani, test), derive(Debug, PartialEq, Eq))] 32 #[derive(Copy, Clone)] 43 #[cfg_attr(any(kani, test), derive(Debug, PartialEq, Eq))] 44 #[derive(Copy, Clone)] 50 #[cfg_attr(any(kani, test), derive(Debug, PartialEq, Eq))] 51 #[derive(Copy, Clone)] 91 #[derive(Copy, Clone)] 92 #[cfg_attr(test, derive(Debug))] 99 #[cfg_attr(test, derive(Debug))] 815 #[derive(Copy, Clone)] in project() [all …]
|
| /linux/rust/proc-macro2/ |
| H A D | marker.rs | 9 #[derive(Copy, Clone)] 12 derive(PartialEq, Eq)
|
| H A D | lib.rs | 197 #[derive(Clone)] 350 #[derive(Copy, Clone)] 538 #[derive(Clone)] 639 #[derive(Clone)] 645 #[derive(Copy, Clone, Debug, Eq, PartialEq)] 779 #[derive(Clone)] 788 #[derive(Copy, Clone, Debug, Eq, PartialEq)] 928 #[derive(Clone)] 1062 #[derive(Clone)] 1319 #[derive(Clone)]
|
| H A D | extra.rs | 83 #[derive(Copy, Clone)] 89 #[derive(Copy, Clone)]
|
| H A D | location.rs | 9 #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
| H A D | wrapper.rs | 22 #[derive(Clone)] 32 #[derive(Clone)] 313 #[derive(Clone)] 371 #[derive(Copy, Clone)] 559 #[derive(Clone)] 664 #[derive(Clone)] 759 #[derive(Clone)]
|
| /linux/rust/pin-init/examples/ |
| H A D | big_struct_in_place.rs | 6 #[derive(Debug)] 17 #[derive(Debug)]
|
| H A D | linked_list.rs | 22 #[derive(Debug)] 94 #[derive(Clone, Debug)]
|
| /linux/rust/kernel/ |
| H A D | alloc.rs | 22 #[derive(Copy, Clone, PartialEq, Eq, Debug)] 37 #[derive(Clone, Copy, PartialEq)] 118 #[derive(Clone, Copy, PartialEq)] 150 /// In order to be able to support `#[derive(CoercePointee)]` later on, we need to avoid a design
|
| H A D | time.rs | 182 #[derive(PartialEq, PartialOrd, Eq, Ord)] 311 #[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Debug)] 322 #[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Debug)] 335 #[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Debug)]
|
| H A D | opp.rs | 118 #[derive(Copy, Clone, PartialEq, Eq, Debug)] 143 #[derive(Copy, Clone, PartialEq, Eq, Debug)] 279 #[derive(Copy, Clone, Debug, Eq, PartialEq)] 342 /// #[derive(Default)] 357 #[derive(Default)]
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 17 #[derive(Debug, Clone, Copy)] 49 #[derive(Debug, Clone, Copy, Default)]
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | invariant.rs | 269 #[derive(Copy, Clone, Debug)] 274 #[derive(Copy, Clone, Debug)]
|
| /linux/rust/kernel/net/phy/ |
| H A D | reg.rs | 57 #[derive(Copy, Clone, Debug)] 140 #[derive(Copy, Clone, Debug)]
|
| /linux/rust/ |
| H A D | bindgen_parameters | 72 --with-derive-custom-struct .*=MaybeZeroable 73 --with-derive-custom-union .*=MaybeZeroable
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | mod.rs | 42 #[derive(Clone)] 82 #[derive(Copy, Clone)] 277 #[derive(Default)]
|
| /linux/rust/pin-init/internal/src/ |
| H A D | lib.rs | 40 DiagCtxt::with(|dcx| zeroable::derive(input, dcx)).into()
|
| /linux/rust/macros/ |
| H A D | zeroable.rs | |
| /linux/rust/syn/ |
| H A D | derive.rs | 72 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput}; 213 use crate::derive::{Data, DeriveInput};
|