Home
last modified time | relevance | path

Searched refs:checked_add (Results 1 - 25 of 27) sorted by relevance

12

/third_party/rust/crates/rust-openssl/openssl/src/
H A Dbase64.rs79 len = len.checked_add(4)?; in encoded_len()
82 len = len.checked_add(1)?; in encoded_len()
91 len = len.checked_add(3)?; in decoded_len()
H A Dbn.rs276 pub fn checked_add(&mut self, a: &BigNumRef, b: &BigNumRef) -> Result<(), ErrorStack> { in checked_add() functions
1281 r.checked_add(self, oth).unwrap(); in add()
/third_party/rust/crates/rustix/src/backend/linux_raw/
H A Dvdso.rs106 vdso.load_end = vdso.base_plus(phdr.p_offset.checked_add(phdr.p_memsz)?)?; in init_from_sysinfo_ehdr()
174 i = i.checked_add(1)?; in init_from_sysinfo_ehdr()
301 let _ = (self.load_addr as usize).checked_add(offset)?; in base_plus()
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/
H A Dconvert.rs98 .and_then(|x| x.checked_add(shifts)), in size_hint()
172 high.and_then(|x| x.checked_add(additional)), in size_hint()
/third_party/rust/crates/proc-macro2/src/
H A Dfallback.rs1068 self.span.lo.checked_add(start)? in subspan()
1072 self.span.lo.checked_add(start)?.checked_add(1)? in subspan()
1079 self.span.lo.checked_add(end)?.checked_add(1)? in subspan()
1083 self.span.lo.checked_add(end)? in subspan()
/third_party/rust/crates/minimal-lexical/src/
H A Dparse.rs200 value.checked_mul(10)?.checked_add(digit as u64) in add_digit()
/third_party/rust/crates/aho-corasick/src/
H A Dclasses.rs186 class = class.checked_add(1).unwrap(); in build()
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dinterval.rs487 self.checked_add(1).unwrap() in increment()
508 c => char::from_u32((c as u32).checked_add(1).unwrap()).unwrap(), in increment()
/third_party/qrcodegen/rust/examples/
H A Dqrcodegen-demo.rs174 let dimension = qr.size().checked_add(border.checked_mul(2).unwrap()).unwrap(); in to_svg_string()
/third_party/rust/crates/cxx/src/
H A Dcxx_string.rs194 .checked_add(additional) in reserve()
/third_party/qrcodegen/rust-no-heap/src/
H A Dlib.rs1233 .and_then(|x| x.checked_add(denom - 1)) in calc_bit_length()
1263 result = result.checked_add(4 + usize::from(ccbits))?; in get_total_bits()
1264 result = result.checked_add(seg.bitlength)?; in get_total_bits()
/third_party/qrcodegen/rust-no-heap/examples/
H A Dqrcodegen-demo.rs235 let dimension = qr.size().checked_add(border.checked_mul(2).unwrap()).unwrap(); in to_svg_string()
/third_party/qrcodegen/rust/src/
H A Dlib.rs1122 result = result.checked_add(4 + usize::from(ccbits))?; in get_total_bits()
1123 result = result.checked_add(seg.data.len())?; in get_total_bits()
/third_party/rust/crates/regex/regex-syntax/src/ast/
H A Dparse.rs418 let i = current.checked_add(1).ok_or_else(|| { in next_capture_index()
474 line = line.checked_add(1).unwrap(); in bump()
477 column = column.checked_add(1).unwrap(); in bump()
619 offset: self.offset().checked_add(self.char().len_utf8()).unwrap(), in span_char()
621 column: self.column().checked_add(1).unwrap(), in span_char()
2146 let new = self.depth.checked_add(1).ok_or_else(|| { in increment_depth()
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Ddiscriminant.rs196 Sign::Positive => match self.magnitude.checked_add(1) {
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Ddiscriminant.rs196 Sign::Positive => match self.magnitude.checked_add(1) {
/third_party/rust/crates/cxx/macro/src/syntax/
H A Ddiscriminant.rs196 Sign::Positive => match self.magnitude.checked_add(1) {
/third_party/rust/crates/cxx/syntax/
H A Ddiscriminant.rs196 Sign::Positive => match self.magnitude.checked_add(1) {
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Ddiscriminant.rs196 Sign::Positive => match self.magnitude.checked_add(1) {
/third_party/rust/crates/rustix/src/backend/libc/net/
H A Dsyscalls.rs504 l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?;
/third_party/rust/crates/nom/src/character/
H A Dstreaming.rs662 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_add(d as $t)) {
722 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_add(d as $t)) {
H A Dcomplete.rs756 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_add(d as $t)) {
816 Some(d) => match value.checked_mul(10).and_then(|v| v.checked_add(d as $t)) {
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
H A Dsyscalls.rs897 l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?;
/third_party/rust/crates/regex/src/
H A Dcompile.rs1197 class = class.checked_add(1).unwrap(); in byte_classes()
/third_party/rust/crates/serde/serde/src/ser/
H A Dimpls.rs839 match i.checked_add(1) { in test_format_u8()

Completed in 28 milliseconds

12