Home
last modified time | relevance | path

Searched refs:derive (Results 1 – 25 of 93) sorted by relevance

1234

/linux/rust/zerocopy-derive/
H A Dlib.rs48 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 DREADME.md1 # `zerocopy-derive`
3 These source files come from the Rust `zerocopy-derive` crate, version v0.8.54
H A Drepr.rs28 #[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 Dmacros.rs1264 #[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 Dlib.rs6479 #[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 Dsplit_at.rs277 #[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 Dlayout.rs31 #[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 Dmarker.rs9 #[derive(Copy, Clone)]
12 derive(PartialEq, Eq)
H A Dlib.rs197 #[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 Dextra.rs83 #[derive(Copy, Clone)]
89 #[derive(Copy, Clone)]
H A Dlocation.rs9 #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
H A Dwrapper.rs22 #[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 Dbig_struct_in_place.rs6 #[derive(Debug)]
17 #[derive(Debug)]
H A Dlinked_list.rs22 #[derive(Debug)]
94 #[derive(Clone, Debug)]
/linux/rust/kernel/
H A Dalloc.rs22 #[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 Dtime.rs182 #[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 Dopp.rs118 #[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 Dirq.rs17 #[derive(Debug, Clone, Copy)]
49 #[derive(Debug, Clone, Copy, Default)]
/linux/rust/zerocopy/src/pointer/
H A Dinvariant.rs269 #[derive(Copy, Clone, Debug)]
274 #[derive(Copy, Clone, Debug)]
/linux/rust/kernel/net/phy/
H A Dreg.rs57 #[derive(Copy, Clone, Debug)]
140 #[derive(Copy, Clone, Debug)]
/linux/rust/
H A Dbindgen_parameters72 --with-derive-custom-struct .*=MaybeZeroable
73 --with-derive-custom-union .*=MaybeZeroable
/linux/drivers/android/binder/range_alloc/
H A Dmod.rs42 #[derive(Clone)]
82 #[derive(Copy, Clone)]
277 #[derive(Default)]
/linux/rust/pin-init/internal/src/
H A Dlib.rs40 DiagCtxt::with(|dcx| zeroable::derive(input, dcx)).into()
/linux/rust/macros/
H A Dzeroable.rs
/linux/rust/syn/
H A Dderive.rs72 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
213 use crate::derive::{Data, DeriveInput};

1234