MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / is_zero

Function is_zero

crates/openshell-policy/src/lib.rs:155–157  ·  view source on GitHub ↗
(v: &u16)

Source from the content-addressed store, hash-verified

153// Signature dictated by serde's `skip_serializing_if`, which requires `&T`.
154#[allow(clippy::trivially_copy_pass_by_ref)]
155fn is_zero(v: &u16) -> bool {
156 *v == 0
157}
158
159// Signature dictated by serde's `skip_serializing_if`, which requires `&T`.
160#[allow(clippy::trivially_copy_pass_by_ref)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected