Trait scryfall::search::param::value::NumericComparableValue

source ·
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.

Implementations on Foreign Types§

source§

impl NumericComparableValue for f32

source§

impl NumericComparableValue for f64

source§

impl NumericComparableValue for i8

source§

impl NumericComparableValue for i16

source§

impl NumericComparableValue for i32

source§

impl NumericComparableValue for i64

source§

impl NumericComparableValue for i128

source§

impl NumericComparableValue for isize

source§

impl NumericComparableValue for u8

source§

impl NumericComparableValue for u16

source§

impl NumericComparableValue for u32

source§

impl NumericComparableValue for u64

source§

impl NumericComparableValue for u128

source§

impl NumericComparableValue for usize

Implementors§