@@ -29,7 +29,7 @@ macro_rules! glib_boxed_inline_wrapper {
29
29
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? std:: marker:: Copy for $name $( <$( $generic) ,+>) ? { }
30
30
31
31
$crate:: glib_boxed_inline_wrapper!(
32
- @generic_impl [ $ ( $attr ) * ] $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
32
+ @generic_impl $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
33
33
@copy ptr unsafe { let copy = $crate:: ffi:: g_malloc( std:: mem:: size_of:: <$ffi_name>( ) ) as * mut $ffi_name; std:: ptr:: copy_nonoverlapping( ptr, copy, 1 ) ; copy } ,
34
34
@free ptr unsafe { $crate:: ffi:: g_free( ptr as * mut _) ; } ,
35
35
@init _ptr ( ) , @copy_into dest src std:: ptr:: copy_nonoverlapping( src, dest, 1 ) , @clear _ptr ( )
@@ -61,7 +61,7 @@ macro_rules! glib_boxed_inline_wrapper {
61
61
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? std:: marker:: Copy for $name $( <$( $generic) ,+>) ? { }
62
62
63
63
$crate:: glib_boxed_inline_wrapper!(
64
- @generic_impl [ $ ( $attr ) * ] $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
64
+ @generic_impl $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
65
65
@copy $copy_arg $copy_expr, @free $free_arg $free_expr,
66
66
@init _ptr ( ) , @copy_into dest src std:: ptr:: copy_nonoverlapping( src, dest, 1 ) , @clear _ptr ( )
67
67
) ;
@@ -99,7 +99,7 @@ macro_rules! glib_boxed_inline_wrapper {
99
99
}
100
100
101
101
$crate:: glib_boxed_inline_wrapper!(
102
- @generic_impl [ $ ( $attr ) * ] $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
102
+ @generic_impl $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
103
103
@copy ptr unsafe { let copy = $crate:: ffi:: g_malloc( std:: mem:: size_of:: <$ffi_name>( ) ) as * mut $ffi_name; let c = |$copy_into_arg_dest, $copy_into_arg_src| $copy_into_expr; c( copy, ptr) ; copy } ,
104
104
@free ptr unsafe { let c = |$clear_arg| $clear_expr; c( ptr) ; $crate:: ffi:: g_free( ptr as * mut _) ; } ,
105
105
@init $init_arg $init_expr, @copy_into $copy_into_arg_dest $copy_into_arg_src $copy_into_expr, @clear $clear_arg $clear_expr
@@ -140,15 +140,15 @@ macro_rules! glib_boxed_inline_wrapper {
140
140
}
141
141
142
142
$crate:: glib_boxed_inline_wrapper!(
143
- @generic_impl [ $ ( $attr ) * ] $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
143
+ @generic_impl $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name,
144
144
@copy $copy_arg $copy_expr, @free $free_arg $free_expr,
145
145
@init $init_arg $init_expr, @copy_into $copy_into_arg_dest $copy_into_arg_src $copy_into_expr, @clear $clear_arg $clear_expr
146
146
) ;
147
147
148
148
$crate:: glib_boxed_inline_wrapper!( @value_impl $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ?, $ffi_name $( , @type_ $get_type_expr) ?) ;
149
149
} ;
150
150
151
- ( @generic_impl [ $ ( $attr : meta ) * ] $name: ident $( <$( $generic: ident $( : $bound: tt $( + $bound2: tt) * ) ?) ,+>) ?, $ffi_name: ty,
151
+ ( @generic_impl $name: ident $( <$( $generic: ident $( : $bound: tt $( + $bound2: tt) * ) ?) ,+>) ?, $ffi_name: ty,
152
152
@copy $copy_arg: ident $copy_expr: expr, @free $free_arg: ident $free_expr: expr,
153
153
@init $init_arg: ident $init_expr: expr, @copy_into $copy_into_arg_dest: ident $copy_into_arg_src: ident $copy_into_expr: expr, @clear $clear_arg: ident $clear_expr: expr) => {
154
154
@@ -207,7 +207,7 @@ macro_rules! glib_boxed_inline_wrapper {
207
207
}
208
208
209
209
#[ doc( hidden) ]
210
- impl <' a $( , $( $generic: ' a + $ ( $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibPtr <' a, * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
210
+ impl <' a $( , $( $generic $ ( : $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibPtr <' a, * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
211
211
type Storage = std:: marker:: PhantomData <& ' a Self >;
212
212
213
213
#[ inline]
@@ -225,7 +225,7 @@ macro_rules! glib_boxed_inline_wrapper {
225
225
}
226
226
227
227
#[ doc( hidden) ]
228
- impl <' a $( , $( $generic: ' a + $ ( $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibPtrMut <' a, * mut $ffi_name> for $name $( <$( $generic) ,+>) ? {
228
+ impl <' a $( , $( $generic $ ( : $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibPtrMut <' a, * mut $ffi_name> for $name $( <$( $generic) ,+>) ? {
229
229
type Storage = std:: marker:: PhantomData <& ' a mut Self >;
230
230
231
231
#[ inline]
@@ -236,7 +236,7 @@ macro_rules! glib_boxed_inline_wrapper {
236
236
}
237
237
238
238
#[ doc( hidden) ]
239
- impl <' a $( , $( $generic: ' a + $ ( $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * mut * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
239
+ impl <' a $( , $( $generic $ ( : $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * mut * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
240
240
type Storage = ( std:: marker:: PhantomData <& ' a [ Self ] >, Option <Vec <* const $ffi_name>>) ;
241
241
242
242
fn to_glib_none_from_slice( t: & ' a [ Self ] ) -> ( * mut * const $ffi_name, Self :: Storage ) {
@@ -276,7 +276,7 @@ macro_rules! glib_boxed_inline_wrapper {
276
276
}
277
277
278
278
#[ doc( hidden) ]
279
- impl <' a $( , $( $generic: ' a + $ ( $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * const * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
279
+ impl <' a $( , $( $generic $ ( : $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * const * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
280
280
type Storage = ( std:: marker:: PhantomData <& ' a [ Self ] >, Option <Vec <* const $ffi_name>>) ;
281
281
282
282
#[ inline]
@@ -297,7 +297,7 @@ macro_rules! glib_boxed_inline_wrapper {
297
297
}
298
298
299
299
#[ doc( hidden) ]
300
- impl <' a $( , $( $generic: ' a + $ ( $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * mut $ffi_name> for $name $( <$( $generic) ,+>) ? {
300
+ impl <' a $( , $( $generic $ ( : $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * mut $ffi_name> for $name $( <$( $generic) ,+>) ? {
301
301
type Storage = std:: marker:: PhantomData <& ' a [ Self ] >;
302
302
303
303
#[ inline]
@@ -329,7 +329,7 @@ macro_rules! glib_boxed_inline_wrapper {
329
329
}
330
330
331
331
#[ doc( hidden) ]
332
- impl <' a $( , $( $generic: ' a $ ( $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
332
+ impl <' a $( , $( $generic $ ( : $bound $( + $bound2) * ) ?) ,+) ?> $crate:: translate:: ToGlibContainerFromSlice <' a, * const $ffi_name> for $name $( <$( $generic) ,+>) ? {
333
333
type Storage = std:: marker:: PhantomData <& ' a [ Self ] >;
334
334
335
335
#[ inline]
0 commit comments