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

Method py_add

crates/vm/src/anystr.rs:154–159  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

152 fn is_empty(&self) -> bool;
153
154 fn py_add(&self, other: &Self) -> Self::Container {
155 let mut new = Self::Container::with_capacity(self.bytes_len() + other.bytes_len());
156 new.push_str(self);
157 new.push_str(other);
158 new
159 }
160
161 fn py_split<T, SP, SN, SW>(
162 &self,

Callers 4

execute_instructionMethod · 0.80
addMethod · 0.80
__add__Method · 0.80
as_numberMethod · 0.80

Implementers 2

bytes_inner.rscrates/vm/src/bytes_inner.rs
str.rscrates/vm/src/builtins/str.rs

Calls 2

bytes_lenMethod · 0.45
push_strMethod · 0.45

Tested by

no test coverage detected