Searched refs:traits (Results 1 – 6 of 6) sorted by relevance
| /linux/rust/zerocopy-derive/ |
| H A D | util.rs | 731 fn bound_tt(ty: &Type, traits: impl Iterator<Item = Trait>, ctx: &Ctx) -> WherePredicate { 732 let traits = traits.map(|t| t.crate_path(ctx)); 733 parse_quote!(#ty: #(#traits)+*) in const_block() 736 (FieldBounds::All(traits), _) => fields in const_block() 739 bound_tt(ty, normalize_bounds(&self.trt, traits), self.ctx) in const_block() 743 (FieldBounds::Trailing(traits), [.., last]) => { in const_block() 744 vec![bound_tt(last.2, normalize_bounds(&self.trt, traits), self.ctx)] in const_block() 792 SelfBounds::All(traits) => { in generate_tag_enum() 793 Some(bound_tt(&parse_quote!(Self), traits in generate_tag_enum() 556 let traits = traits.map(|t| t.crate_path(ctx)); build() localVariable [all...] |
| /linux/drivers/media/platform/sunxi/sun4i-csi/ |
| H A D | sun4i_csi.c | 178 csi->traits = of_device_get_match_data(&pdev->dev); in sun4i_csi_probe() 179 if (!csi->traits) in sun4i_csi_probe() 203 if (csi->traits->has_isp) { in sun4i_csi_probe()
|
| H A D | sun4i_csi.h | 112 const struct sun4i_csi_traits *traits; member
|
| /linux/rust/zerocopy/src/util/ |
| H A D | macros.rs | 35 // Implement all `$traits` for `$ty` with no bounds. 41 // ($(#[$attrs:meta])* $ty:ty: $($traits:ident),*) => { 42 // $( unsafe_impl!( $(#[$attrs])* $ty: $traits ) );* 46 // contains both $attrs and $traits and expects them to match the same 51 // 2. Expand the traits. 53 ($(#[$attrs:meta])* $ty:ty: $($traits:ident),*) => { 54 unsafe_impl!(@impl_traits_with_packed_attrs { $(#[$attrs])* } $ty: $($traits),*) 57 (@impl_traits_with_packed_attrs $attrs:tt $ty:ty: $($traits:ident),*) => {{ 58 $( unsafe_impl!(@unpack_attrs $attrs $ty: $traits); )* 61 (@unpack_attrs { $(#[$attrs:meta])* } $ty:ty: $traits [all...] |
| /linux/rust/kernel/ |
| H A D | debugfs.rs | 30 mod traits; 31 pub use traits::{ 23 mod traits; global() module
|
| /linux/Documentation/rust/ |
| H A D | coding-guidelines.rst | 186 (for functions) or implementors (for traits) need to abide by. ``// SAFETY:`` 187 comments show why a call (for functions) or implementation (for traits) actually
|