@@ -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) ,* > $crate :: core:: fmt:: $imp for $ty<$( $gen) ,* > {
33
- fn fmt( & self , f: & mut $crate :: core:: fmt:: Formatter ) -> $crate :: core:: fmt:: Result {
32
+ impl <$( $gen: $gent) ,* > core:: fmt:: $imp for $ty<$( $gen) ,* > {
33
+ fn fmt( & self , f: & mut core:: fmt:: Formatter ) -> 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) ,* > $crate :: core:: ops:: Index <usize > for $ty<$( $gen) ,* > {
52
+ impl <$( $gen: $gent) ,* > 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) ,* > $crate :: core:: ops:: Index <$crate :: core:: ops:: Range <usize >> for $ty<$( $gen) ,* > {
59
+ impl <$( $gen: $gent) ,* > core:: ops:: Index <core:: ops:: Range <usize >> for $ty<$( $gen) ,* > {
60
60
type Output = [ u8 ] ;
61
- fn index( & self , index: $crate :: core:: ops:: Range <usize >) -> & [ u8 ] {
61
+ fn index( & self , index: core:: ops:: Range <usize >) -> & [ u8 ] {
62
62
& self . 0 [ index]
63
63
}
64
64
}
65
65
66
- impl <$( $gen: $gent) ,* > $crate :: core:: ops:: Index <$crate :: core:: ops:: RangeFrom <usize >> for $ty<$( $gen) ,* > {
66
+ impl <$( $gen: $gent) ,* > core:: ops:: Index <core:: ops:: RangeFrom <usize >> for $ty<$( $gen) ,* > {
67
67
type Output = [ u8 ] ;
68
- fn index( & self , index: $crate :: core:: ops:: RangeFrom <usize >) -> & [ u8 ] {
68
+ fn index( & self , index: core:: ops:: RangeFrom <usize >) -> & [ u8 ] {
69
69
& self . 0 [ index]
70
70
}
71
71
}
72
72
73
- impl <$( $gen: $gent) ,* > $crate :: core:: ops:: Index <$crate :: core:: ops:: RangeTo <usize >> for $ty<$( $gen) ,* > {
73
+ impl <$( $gen: $gent) ,* > core:: ops:: Index <core:: ops:: RangeTo <usize >> for $ty<$( $gen) ,* > {
74
74
type Output = [ u8 ] ;
75
- fn index( & self , index: $crate :: core:: ops:: RangeTo <usize >) -> & [ u8 ] {
75
+ fn index( & self , index: core:: ops:: RangeTo <usize >) -> & [ u8 ] {
76
76
& self . 0 [ index]
77
77
}
78
78
}
79
79
80
- impl <$( $gen: $gent) ,* > $crate :: core:: ops:: Index <$crate :: core:: ops:: RangeFull > for $ty<$( $gen) ,* > {
80
+ impl <$( $gen: $gent) ,* > core:: ops:: Index <core:: ops:: RangeFull > for $ty<$( $gen) ,* > {
81
81
type Output = [ u8 ] ;
82
- fn index( & self , index: $crate :: core:: ops:: RangeFull ) -> & [ u8 ] {
82
+ fn index( & self , index: 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) ,* > $crate :: core:: borrow:: Borrow <[ u8 ] > for $ty<$( $gen) ,* > {
96
+ impl <$( $gen: $gent) ,* > 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) ,* > $crate :: core:: convert:: AsRef <[ u8 ] > for $ty<$( $gen) ,* > {
102
+ impl <$( $gen: $gent) ,* > 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) ,* > $crate :: core:: ops:: Deref for $ty<$( $gen) ,* > {
108
+ impl <$( $gen: $gent) ,* > core:: ops:: Deref for $ty<$( $gen) ,* > {
109
109
type Target = [ u8 ] ;
110
110
111
111
fn deref( & self ) -> & Self :: Target {
0 commit comments