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 86a686c commit 2e02803Copy full SHA for 2e02803
src/libcollections/string.rs
@@ -1902,26 +1902,6 @@ impl Into<Vec<u8>> for String {
1902
}
1903
1904
1905
-#[stable(feature = "stringfromchars", since = "1.12.0")]
1906
-impl<'a> From<&'a [char]> for String {
1907
- #[inline]
1908
- fn from(v: &'a [char]) -> String {
1909
- let mut s = String::with_capacity(v.len());
1910
- for c in v {
1911
- s.push(*c);
1912
- }
1913
- s
1914
1915
-}
1916
-
1917
1918
-impl From<Vec<char>> for String {
1919
1920
- fn from(v: Vec<char>) -> String {
1921
- String::from(v.as_slice())
1922
1923
1924
1925
#[stable(feature = "rust1", since = "1.0.0")]
1926
impl fmt::Write for String {
1927
#[inline]
0 commit comments