MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / is_one

Method is_one

src/analysis/memory/expression.rs:304–309  ·  view source on GitHub ↗

Determines if the given expression is the compile time constant 1u128.

(&self)

Source from the content-addressed store, hash-verified

302
303 /// Determines if the given expression is the compile time constant 1u128.
304 pub fn is_one(&self) -> bool {
305 if let Expression::CompileTimeConstant(ConstantValue::Int(val)) = self {
306 return *val == 1;
307 }
308 false
309 }
310
311 /// Determines if the given expression is the compile time constant 0u128.
312 pub fn is_zero(&self) -> bool {

Callers 1

orMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected