Function extract_u32_from_scval

Source
pub fn extract_u32_from_scval(val: &ScVal, context: &str) -> Option<u32>
Expand description

Extract a u32 value from an ScVal.

Handles multiple ScVal types that can represent numeric values.

§Arguments

  • val - ScVal to extract from
  • context - Context string (for logging)

§Returns

Some(u32) if extraction succeeds, None otherwise