@@ -860,13 +860,6 @@ impl fmt::Show for FullRange {
860
860
}
861
861
}
862
862
863
- #[ unstable = "API still in development" ]
864
- impl fmt:: String for FullRange {
865
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
866
- fmt:: String :: fmt ( ".." , fmt)
867
- }
868
- }
869
-
870
863
/// A (half-open) range which is bounded at both ends.
871
864
#[ derive( Copy , PartialEq , Eq ) ]
872
865
#[ lang="range" ]
@@ -925,20 +918,6 @@ impl<Idx: fmt::Show> fmt::Show for Range<Idx> {
925
918
write ! ( fmt, "{:?}..{:?}" , self . start, self . end)
926
919
}
927
920
}
928
- #[ cfg( stage0) ]
929
- #[ unstable = "API still in development" ]
930
- impl < Idx : fmt:: String + fmt:: Show > fmt:: String for Range < Idx > {
931
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
932
- write ! ( fmt, "{}..{}" , self . start, self . end)
933
- }
934
- }
935
- #[ cfg( not( stage0) ) ]
936
- #[ unstable = "API still in development" ]
937
- impl < Idx : fmt:: String > fmt:: String for Range < Idx > {
938
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
939
- write ! ( fmt, "{}..{}" , self . start, self . end)
940
- }
941
- }
942
921
943
922
/// A range which is only bounded below.
944
923
#[ derive( Copy , PartialEq , Eq ) ]
@@ -969,21 +948,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeFrom<Idx> {
969
948
}
970
949
}
971
950
972
- #[ cfg( stage0) ]
973
- #[ unstable = "API still in development" ]
974
- impl < Idx : fmt:: String + fmt:: Show > fmt:: String for RangeFrom < Idx > {
975
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
976
- write ! ( fmt, "{}.." , self . start)
977
- }
978
- }
979
- #[ cfg( not( stage0) ) ]
980
- #[ unstable = "API still in development" ]
981
- impl < Idx : fmt:: String > fmt:: String for RangeFrom < Idx > {
982
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
983
- write ! ( fmt, "{}.." , self . start)
984
- }
985
- }
986
-
987
951
/// A range which is only bounded above.
988
952
#[ derive( Copy , PartialEq , Eq ) ]
989
953
#[ lang="range_to" ]
@@ -1000,21 +964,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeTo<Idx> {
1000
964
}
1001
965
}
1002
966
1003
- #[ cfg( stage0) ]
1004
- #[ unstable = "API still in development" ]
1005
- impl < Idx : fmt:: String + fmt:: Show > fmt:: String for RangeTo < Idx > {
1006
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
1007
- write ! ( fmt, "..{}" , self . end)
1008
- }
1009
- }
1010
- #[ cfg( not( stage0) ) ]
1011
- #[ unstable = "API still in development" ]
1012
- impl < Idx : fmt:: String > fmt:: String for RangeTo < Idx > {
1013
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
1014
- write ! ( fmt, "..{}" , self . end)
1015
- }
1016
- }
1017
-
1018
967
1019
968
/// The `Deref` trait is used to specify the functionality of dereferencing
1020
969
/// operations like `*v`.
0 commit comments