File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -600,18 +600,13 @@ impl_array_sizes_with_import! {
600
600
#[ allow( missing_docs) ]
601
601
mod extra_sizes {
602
602
use super :: { ArraySize , AssocArraySize } ;
603
- use typenum:: {
604
- consts:: { B0 , B1 } ,
605
- UInt , UTerm ,
606
- } ;
607
-
608
603
// This macro constructs a UInt type from a sequence of bits. The bits are interpreted as the
609
604
// little-endian representation of the integer in question. For example, uint!(1 1 0 1 0 0 1) is
610
605
// U75 (not U105).
611
606
macro_rules! uint {
612
- ( ) => { UTerm } ;
613
- ( 0 $( $bs: tt) * ) => { UInt < uint!( $( $bs) * ) , B0 > } ;
614
- ( 1 $( $bs: tt) * ) => { UInt < uint!( $( $bs) * ) , B1 > } ;
607
+ ( ) => { typenum :: UTerm } ;
608
+ ( 0 $( $bs: tt) * ) => { typenum :: UInt < uint!( $( $bs) * ) , typenum :: B0 > } ;
609
+ ( 1 $( $bs: tt) * ) => { typenum :: UInt < uint!( $( $bs) * ) , typenum :: B1 > } ;
615
610
}
616
611
617
612
pub type U1040 = uint ! ( 0 0 0 0 1 0 0 0 0 0 1 ) ;
You can’t perform that action at this time.
0 commit comments