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

Method insert_wtf8

crates/wtf8/src/lib.rs:516–520  ·  view source on GitHub ↗
(&mut self, idx: usize, w: &Wtf8)

Source from the content-addressed store, hash-verified

514 /// Inserts a WTF-8 slice into this `Wtf8Buf` at a byte position.
515 #[inline]
516 pub fn insert_wtf8(&mut self, idx: usize, w: &Wtf8) {
517 assert!(is_code_point_boundary(self, idx));
518
519 self.bytes.insert_str(idx, w)
520 }
521
522 /// Consumes the WTF-8 string and tries to convert it to a vec of bytes.
523 #[inline]

Callers 1

insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected