Skip to main content

value_eq_literal

Function value_eq_literal 

Source
pub fn value_eq_literal(value: &StixValue, lit: &Literal) -> bool
Expand description

Compares a resolved value with a pattern literal for equality.

Integers and floats compare numerically across the int/float divide; string-like literals (string, timestamp, binary, hex) compare as strings. Timestamps are NOT parsed — they compare lexicographically.