We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
From<Vec<char>>
From<&'a [char]>
String
1 parent aec8364 commit cfb29dbCopy full SHA for cfb29db
src/libcollections/string.rs
@@ -1901,26 +1901,6 @@ impl Into<Vec<u8>> for String {
1901
}
1902
1903
1904
-#[stable(feature = "stringfromchars", since = "1.12.0")]
1905
-impl<'a> From<&'a [char]> for String {
1906
- #[inline]
1907
- fn from(v: &'a [char]) -> String {
1908
- let mut s = String::with_capacity(v.len());
1909
- for c in v {
1910
- s.push(*c);
1911
- }
1912
- s
1913
1914
-}
1915
-
1916
1917
-impl From<Vec<char>> for String {
1918
1919
- fn from(v: Vec<char>) -> String {
1920
- String::from(v.as_slice())
1921
1922
1923
1924
#[stable(feature = "rust1", since = "1.0.0")]
1925
impl fmt::Write for String {
1926
#[inline]
0 commit comments