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

Method add

crates/common/src/encodings.rs:117–122  ·  view source on GitHub ↗
(self, rhs: Self)

Source from the content-addressed store, hash-verified

115impl ops::Add for StrSize {
116 type Output = Self;
117 fn add(self, rhs: Self) -> Self::Output {
118 Self {
119 bytes: self.bytes + rhs.bytes,
120 chars: self.chars + rhs.chars,
121 }
122 }
123}
124
125impl ops::AddAssign for StrSize {

Callers 7

get_unchecked_ptrMethod · 0.45
try_extend_from_sliceMethod · 0.45
dropMethod · 0.45
raw_ptr_addFunction · 0.45
get_nextMethod · 0.45
set_nextMethod · 0.45
read_argMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected