File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1874,6 +1874,27 @@ impl<'a> From<String> for Cow<'a, str> {
18741874 }
18751875}
18761876
1877+ #[ stable( feature = "cow_str_from_iter" , since = "1.12.0" ) ]
1878+ impl < ' a > FromIterator < char > for Cow < ' a , str > {
1879+ fn from_iter < I : IntoIterator < Item = char > > ( it : I ) -> Cow < ' a , str > {
1880+ Cow :: Owned ( FromIterator :: from_iter ( it) )
1881+ }
1882+ }
1883+
1884+ #[ stable( feature = "cow_str_from_iter" , since = "1.12.0" ) ]
1885+ impl < ' a , ' b > FromIterator < & ' b str > for Cow < ' a , str > {
1886+ fn from_iter < I : IntoIterator < Item = & ' b str > > ( it : I ) -> Cow < ' a , str > {
1887+ Cow :: Owned ( FromIterator :: from_iter ( it) )
1888+ }
1889+ }
1890+
1891+ #[ stable( feature = "cow_str_from_iter" , since = "1.12.0" ) ]
1892+ impl < ' a > FromIterator < String > for Cow < ' a , str > {
1893+ fn from_iter < I : IntoIterator < Item = String > > ( it : I ) -> Cow < ' a , str > {
1894+ Cow :: Owned ( FromIterator :: from_iter ( it) )
1895+ }
1896+ }
1897+
18771898#[ stable( feature = "rust1" , since = "1.0.0" ) ]
18781899impl Into < Vec < u8 > > for String {
18791900 fn into ( self ) -> Vec < u8 > {
You can’t perform that action at this time.
0 commit comments