pub trait NumericComparableValue: ParamValue { }
Expand description
A numeric value for a parameter, supporting comparison operators.
Parameters with a NumericComparableValue
include power()
,
toughness()
, and cmc()
.
Parameters that use this trait can be compared to one another through
the NumProperty
enum. For example, to search for a card with power
greater than its toughness:
use scryfall::search::prelude::*;
let query = power(gt(NumProperty::Toughness));
This trait is implemented by all NumericValue
types and the NumProperty
enum.