@@ -835,7 +835,7 @@ impl<T: Copy, E> Result<&T, E> {
835
835
/// assert_eq!(copied, Ok(12));
836
836
/// ```
837
837
#[ unstable( feature = "result_copied" , reason = "newly added" , issue = "63168" ) ]
838
- fn copied ( self ) -> Result < T , E > {
838
+ pub fn copied ( self ) -> Result < T , E > {
839
839
self . map ( |& t| t)
840
840
}
841
841
}
@@ -855,7 +855,7 @@ impl<T: Copy, E> Result<&mut T, E> {
855
855
/// assert_eq!(copied, Ok(12));
856
856
/// ```
857
857
#[ unstable( feature = "result_copied" , reason = "newly added" , issue = "63168" ) ]
858
- fn copied ( self ) -> Result < T , E > {
858
+ pub fn copied ( self ) -> Result < T , E > {
859
859
self . map ( |& mut t| t)
860
860
}
861
861
}
@@ -875,7 +875,7 @@ impl<T, E: Copy> Result<T, &E> {
875
875
/// assert_eq!(copied, Err(12));
876
876
/// ```
877
877
#[ unstable( feature = "result_copied" , reason = "newly added" , issue = "63168" ) ]
878
- fn copied_err ( self ) -> Result < T , E > {
878
+ pub fn copied_err ( self ) -> Result < T , E > {
879
879
self . map_err ( |& e| e)
880
880
}
881
881
}
@@ -895,7 +895,7 @@ impl<T, E: Copy> Result<T, &mut E> {
895
895
/// assert_eq!(cloned, Err(12));
896
896
/// ```
897
897
#[ unstable( feature = "result_copied" , reason = "newly added" , issue = "63168" ) ]
898
- fn copied_err ( self ) -> Result < T , E > {
898
+ pub fn copied_err ( self ) -> Result < T , E > {
899
899
self . map_err ( |& mut e| e)
900
900
}
901
901
}
@@ -915,7 +915,7 @@ impl<T: Clone, E> Result<&T, E> {
915
915
/// assert_eq!(cloned, Ok(12));
916
916
/// ```
917
917
#[ unstable( feature = "result_cloned" , reason = "newly added" , issue = "63168" ) ]
918
- fn cloned ( self ) -> Result < T , E > {
918
+ pub fn cloned ( self ) -> Result < T , E > {
919
919
self . map ( |t| t. clone ( ) )
920
920
}
921
921
}
@@ -935,7 +935,7 @@ impl<T: Clone, E> Result<&mut T, E> {
935
935
/// assert_eq!(cloned, Ok(12));
936
936
/// ```
937
937
#[ unstable( feature = "result_cloned" , reason = "newly added" , issue = "63168" ) ]
938
- fn cloned ( self ) -> Result < T , E > {
938
+ pub fn cloned ( self ) -> Result < T , E > {
939
939
self . map ( |t| t. clone ( ) )
940
940
}
941
941
}
@@ -955,7 +955,7 @@ impl<T, E: Clone> Result<T, &E> {
955
955
/// assert_eq!(cloned, Err(12));
956
956
/// ```
957
957
#[ unstable( feature = "result_cloned" , reason = "newly added" , issue = "63168" ) ]
958
- fn cloned_err ( self ) -> Result < T , E > {
958
+ pub fn cloned_err ( self ) -> Result < T , E > {
959
959
self . map_err ( |e| e. clone ( ) )
960
960
}
961
961
}
@@ -975,7 +975,7 @@ impl<T, E: Clone> Result<T, &mut E> {
975
975
/// assert_eq!(cloned, Err(12));
976
976
/// ```
977
977
#[ unstable( feature = "result_cloned" , reason = "newly added" , issue = "63168" ) ]
978
- fn cloned_err ( self ) -> Result < T , E > {
978
+ pub fn cloned_err ( self ) -> Result < T , E > {
979
979
self . map_err ( |e| e. clone ( ) )
980
980
}
981
981
}
0 commit comments