@@ -835,7 +835,7 @@ impl<T: Copy, E> Result<&T, E> {
835835 /// assert_eq!(copied, Ok(12));
836836 /// ```
837837 #[ unstable( feature = "result_copied" , reason = "newly added" , issue = "63168" ) ]
838- fn copied ( self ) -> Result < T , E > {
838+ pub fn copied ( self ) -> Result < T , E > {
839839 self . map ( |& t| t)
840840 }
841841}
@@ -855,7 +855,7 @@ impl<T: Copy, E> Result<&mut T, E> {
855855 /// assert_eq!(copied, Ok(12));
856856 /// ```
857857 #[ unstable( feature = "result_copied" , reason = "newly added" , issue = "63168" ) ]
858- fn copied ( self ) -> Result < T , E > {
858+ pub fn copied ( self ) -> Result < T , E > {
859859 self . map ( |& mut t| t)
860860 }
861861}
@@ -875,7 +875,7 @@ impl<T, E: Copy> Result<T, &E> {
875875 /// assert_eq!(copied, Err(12));
876876 /// ```
877877 #[ 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 > {
879879 self . map_err ( |& e| e)
880880 }
881881}
@@ -895,7 +895,7 @@ impl<T, E: Copy> Result<T, &mut E> {
895895 /// assert_eq!(cloned, Err(12));
896896 /// ```
897897 #[ 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 > {
899899 self . map_err ( |& mut e| e)
900900 }
901901}
@@ -915,7 +915,7 @@ impl<T: Clone, E> Result<&T, E> {
915915 /// assert_eq!(cloned, Ok(12));
916916 /// ```
917917 #[ unstable( feature = "result_cloned" , reason = "newly added" , issue = "63168" ) ]
918- fn cloned ( self ) -> Result < T , E > {
918+ pub fn cloned ( self ) -> Result < T , E > {
919919 self . map ( |t| t. clone ( ) )
920920 }
921921}
@@ -935,7 +935,7 @@ impl<T: Clone, E> Result<&mut T, E> {
935935 /// assert_eq!(cloned, Ok(12));
936936 /// ```
937937 #[ unstable( feature = "result_cloned" , reason = "newly added" , issue = "63168" ) ]
938- fn cloned ( self ) -> Result < T , E > {
938+ pub fn cloned ( self ) -> Result < T , E > {
939939 self . map ( |t| t. clone ( ) )
940940 }
941941}
@@ -955,7 +955,7 @@ impl<T, E: Clone> Result<T, &E> {
955955 /// assert_eq!(cloned, Err(12));
956956 /// ```
957957 #[ 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 > {
959959 self . map_err ( |e| e. clone ( ) )
960960 }
961961}
@@ -975,7 +975,7 @@ impl<T, E: Clone> Result<T, &mut E> {
975975 /// assert_eq!(cloned, Err(12));
976976 /// ```
977977 #[ 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 > {
979979 self . map_err ( |e| e. clone ( ) )
980980 }
981981}
0 commit comments