MCPcopy Index your code
hub / github.com/RustPython/RustPython / from_iter

Method from_iter

crates/wtf8/src/lib.rs:580–584  ·  view source on GitHub ↗
(iter: T)

Source from the content-addressed store, hash-verified

578/// like concatenating ill-formed UTF-16 strings effectively would.
579impl FromIterator<CodePoint> for Wtf8Buf {
580 fn from_iter<T: IntoIterator<Item = CodePoint>>(iter: T) -> Wtf8Buf {
581 let mut string = Wtf8Buf::new();
582 string.extend(iter);
583 string
584 }
585}
586
587/// Append code points from an iterator to the string.

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
push_wtf8Method · 0.80
extendMethod · 0.45
into_iterMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected