@@ -973,6 +973,12 @@ enum trait_method {
973
973
#[ auto_decode]
974
974
enum int_ty { ty_i, ty_char, ty_i8, ty_i16, ty_i32, ty_i64, }
975
975
976
+ impl int_ty : ToStr {
977
+ pure fn to_str ( ) -> ~str {
978
+ :: ast_util:: int_ty_to_str ( self )
979
+ }
980
+ }
981
+
976
982
impl int_ty : to_bytes:: IterBytes {
977
983
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
978
984
( * self as u8 ) . iter_bytes ( lsb0, f)
@@ -1003,6 +1009,12 @@ impl int_ty : cmp::Eq {
1003
1009
#[ auto_decode]
1004
1010
enum uint_ty { ty_u, ty_u8, ty_u16, ty_u32, ty_u64, }
1005
1011
1012
+ impl uint_ty : ToStr {
1013
+ pure fn to_str ( ) -> ~str {
1014
+ :: ast_util:: uint_ty_to_str ( self )
1015
+ }
1016
+ }
1017
+
1006
1018
impl uint_ty : to_bytes:: IterBytes {
1007
1019
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
1008
1020
( * self as u8 ) . iter_bytes ( lsb0, f)
@@ -1031,6 +1043,12 @@ impl uint_ty : cmp::Eq {
1031
1043
#[ auto_decode]
1032
1044
enum float_ty { ty_f, ty_f32, ty_f64, }
1033
1045
1046
+ impl float_ty : ToStr {
1047
+ pure fn to_str ( ) -> ~str {
1048
+ :: ast_util:: float_ty_to_str ( self )
1049
+ }
1050
+ }
1051
+
1034
1052
impl float_ty : to_bytes:: IterBytes {
1035
1053
pure fn iter_bytes ( & self , +lsb0 : bool , f : to_bytes:: Cb ) {
1036
1054
( * self as u8 ) . iter_bytes ( lsb0, f)
0 commit comments