Lines Matching refs:traits
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:ident) => {
62 unsafe_impl!($(#[$attrs])* $ty: $traits);
188 // `$repr: $trait`. The supported traits - `TryFromBytes`,
257 /// a set of type variables. This is useful for implementing traits for tuples
345 /// traits instead. In this case, `impl_or_verify!` emits code which validates