@@ -29,8 +29,8 @@ macro_rules! hex_fmt_impl(
29
29
hex_fmt_impl!( $imp, $ty, ) ;
30
30
) ;
31
31
( $imp: ident, $ty: ident, $( $gen: ident: $gent: ident) ,* ) => (
32
- impl <$( $gen: $gent) ,* > :: core :: fmt:: $imp for $ty<$( $gen) ,* > {
33
- fn fmt( & self , f: & mut :: core :: fmt:: Formatter ) -> :: core :: fmt:: Result {
32
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: fmt:: $imp for $ty<$( $gen) ,* > {
33
+ fn fmt( & self , f: & mut $crate :: _export :: _core :: fmt:: Formatter ) -> $crate :: _export :: _core :: fmt:: Result {
34
34
use $crate:: hex:: { format_hex, format_hex_reverse} ;
35
35
if $ty:: <$( $gen) ,* >:: DISPLAY_BACKWARD {
36
36
format_hex_reverse( & self . 0 , f)
@@ -49,37 +49,37 @@ macro_rules! index_impl(
49
49
index_impl!( $ty, ) ;
50
50
) ;
51
51
( $ty: ident, $( $gen: ident: $gent: ident) ,* ) => (
52
- impl <$( $gen: $gent) ,* > :: core :: ops:: Index <usize > for $ty<$( $gen) ,* > {
52
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: ops:: Index <usize > for $ty<$( $gen) ,* > {
53
53
type Output = u8 ;
54
54
fn index( & self , index: usize ) -> & u8 {
55
55
& self . 0 [ index]
56
56
}
57
57
}
58
58
59
- impl <$( $gen: $gent) ,* > :: core :: ops:: Index <:: core :: ops:: Range <usize >> for $ty<$( $gen) ,* > {
59
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: ops:: Index <$crate :: _export :: _core :: ops:: Range <usize >> for $ty<$( $gen) ,* > {
60
60
type Output = [ u8 ] ;
61
- fn index( & self , index: :: core :: ops:: Range <usize >) -> & [ u8 ] {
61
+ fn index( & self , index: $crate :: _export :: _core :: ops:: Range <usize >) -> & [ u8 ] {
62
62
& self . 0 [ index]
63
63
}
64
64
}
65
65
66
- impl <$( $gen: $gent) ,* > :: core :: ops:: Index <:: core :: ops:: RangeFrom <usize >> for $ty<$( $gen) ,* > {
66
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: ops:: Index <$crate :: _export :: _core :: ops:: RangeFrom <usize >> for $ty<$( $gen) ,* > {
67
67
type Output = [ u8 ] ;
68
- fn index( & self , index: :: core :: ops:: RangeFrom <usize >) -> & [ u8 ] {
68
+ fn index( & self , index: $crate :: _export :: _core :: ops:: RangeFrom <usize >) -> & [ u8 ] {
69
69
& self . 0 [ index]
70
70
}
71
71
}
72
72
73
- impl <$( $gen: $gent) ,* > :: core :: ops:: Index <:: core :: ops:: RangeTo <usize >> for $ty<$( $gen) ,* > {
73
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: ops:: Index <$crate :: _export :: _core :: ops:: RangeTo <usize >> for $ty<$( $gen) ,* > {
74
74
type Output = [ u8 ] ;
75
- fn index( & self , index: :: core :: ops:: RangeTo <usize >) -> & [ u8 ] {
75
+ fn index( & self , index: $crate :: _export :: _core :: ops:: RangeTo <usize >) -> & [ u8 ] {
76
76
& self . 0 [ index]
77
77
}
78
78
}
79
79
80
- impl <$( $gen: $gent) ,* > :: core :: ops:: Index <:: core :: ops:: RangeFull > for $ty<$( $gen) ,* > {
80
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: ops:: Index <$crate :: _export :: _core :: ops:: RangeFull > for $ty<$( $gen) ,* > {
81
81
type Output = [ u8 ] ;
82
- fn index( & self , index: :: core :: ops:: RangeFull ) -> & [ u8 ] {
82
+ fn index( & self , index: $crate :: _export :: _core :: ops:: RangeFull ) -> & [ u8 ] {
83
83
& self . 0 [ index]
84
84
}
85
85
}
@@ -93,19 +93,19 @@ macro_rules! borrow_slice_impl(
93
93
borrow_slice_impl!( $ty, ) ;
94
94
) ;
95
95
( $ty: ident, $( $gen: ident: $gent: ident) ,* ) => (
96
- impl <$( $gen: $gent) ,* > :: core :: borrow:: Borrow <[ u8 ] > for $ty<$( $gen) ,* > {
96
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: borrow:: Borrow <[ u8 ] > for $ty<$( $gen) ,* > {
97
97
fn borrow( & self ) -> & [ u8 ] {
98
98
& self [ ..]
99
99
}
100
100
}
101
101
102
- impl <$( $gen: $gent) ,* > :: core :: convert:: AsRef <[ u8 ] > for $ty<$( $gen) ,* > {
102
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: convert:: AsRef <[ u8 ] > for $ty<$( $gen) ,* > {
103
103
fn as_ref( & self ) -> & [ u8 ] {
104
104
& self [ ..]
105
105
}
106
106
}
107
107
108
- impl <$( $gen: $gent) ,* > :: core :: ops:: Deref for $ty<$( $gen) ,* > {
108
+ impl <$( $gen: $gent) ,* > $crate :: _export :: _core :: ops:: Deref for $ty<$( $gen) ,* > {
109
109
type Target = [ u8 ] ;
110
110
111
111
fn deref( & self ) -> & Self :: Target {
@@ -241,14 +241,14 @@ macro_rules! hash_newtype {
241
241
}
242
242
}
243
243
244
- impl :: core :: convert:: From <$hash> for $newtype {
244
+ impl $crate :: _export :: _core :: convert:: From <$hash> for $newtype {
245
245
fn from( inner: $hash) -> $newtype {
246
246
// Due to rust 1.22 we have to use this instead of simple `Self(inner)`
247
247
Self { 0 : inner }
248
248
}
249
249
}
250
250
251
- impl :: core :: convert:: From <$newtype> for $hash {
251
+ impl $crate :: _export :: _core :: convert:: From <$newtype> for $hash {
252
252
fn from( hashtype: $newtype) -> $hash {
253
253
hashtype. 0
254
254
}
@@ -290,9 +290,9 @@ macro_rules! hash_newtype {
290
290
}
291
291
}
292
292
293
- impl :: core :: str :: FromStr for $newtype {
293
+ impl $crate :: _export :: _core :: str :: FromStr for $newtype {
294
294
type Err = $crate:: hex:: Error ;
295
- fn from_str( s: & str ) -> :: core :: result:: Result <$newtype, Self :: Err > {
295
+ fn from_str( s: & str ) -> $crate :: _export :: _core :: result:: Result <$newtype, Self :: Err > {
296
296
$crate:: hex:: FromHex :: from_hex( s)
297
297
}
298
298
}
0 commit comments