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

Method from_string

crates/wtf8/src/lib.rs:327–331  ·  view source on GitHub ↗
(string: String)

Source from the content-addressed store, hash-verified

325 /// Since WTF-8 is a superset of UTF-8, this always succeeds.
326 #[inline]
327 pub fn from_string(string: String) -> Wtf8Buf {
328 Wtf8Buf {
329 bytes: string.into_bytes(),
330 }
331 }
332
333 pub fn join<I, S>(sep: impl AsRef<Wtf8>, iter: I) -> Wtf8Buf
334 where

Callers

nothing calls this directly

Calls 1

into_bytesMethod · 0.45

Tested by

no test coverage detected