Home
last modified time | relevance | path

Searched refs:try_to_scalar_int (Results 1 – 4 of 4) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/consts/
H A Dkind.rs108 pub fn try_to_scalar_int(self) -> Option<ScalarInt> { in try_to_scalar_int() method
114 self.try_to_scalar_int()?.to_bits(size).ok() in try_to_bits()
119 self.try_to_scalar_int()?.try_into().ok() in try_to_bool()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/mir/interpret/
H A Dvalue.rs76 pub fn try_to_scalar_int(&self) -> Option<ScalarInt> { in try_to_scalar_int() method
81 self.try_to_scalar_int()?.to_bits(size).ok() in try_to_bits()
85 self.try_to_scalar_int()?.try_into().ok() in try_to_bool()
89 self.try_to_scalar_int()?.try_to_machine_usize(tcx).ok() in try_to_machine_usize()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/mir/
H A Dmod.rs2562 pub fn try_to_scalar_int(self) -> Option<ScalarInt> { in try_to_scalar_int() method
2568 self.try_to_scalar_int()?.to_bits(size).ok() in try_to_bits()
2573 self.try_to_scalar_int()?.try_into().ok() in try_to_bool()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_codegen_cranelift/src/
H A Dconstant.rs491 != const_val.try_to_scalar_int()?.size() in mir_operand_get_const_val()