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

Function init

crates/vm/src/builtins/str.rs:1796–1805  ·  view source on GitHub ↗
(ctx: &'static Context)

Source from the content-addressed store, hash-verified

1794}
1795
1796pub fn init(ctx: &'static Context) {
1797 PyStr::extend_class(ctx, ctx.types.str_type);
1798 ctx.types
1799 .str_type
1800 .slots
1801 .vectorcall
1802 .store(Some(vectorcall_str));
1803
1804 PyStrIterator::extend_class(ctx, ctx.types.str_iterator_type);
1805}
1806
1807impl SliceableSequenceOp for PyStr {
1808 type Item = CodePoint;

Callers 8

run_pyFunction · 0.50
x509_stack_from_derFunction · 0.50
newMethod · 0.50
construct_and_initMethod · 0.50
slot_initMethod · 0.50
extendMethod · 0.50
initialize_main_vmFunction · 0.50
init_genesisMethod · 0.50

Calls 2

SomeClass · 0.50
storeMethod · 0.45

Tested by

no test coverage detected