@@ -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
0 commit comments