Trait spacetimedb::FilterableValue

source ·
pub trait FilterableValue: Serialize + Eq { }
Expand description

A trait for types that can be serialized and tested for equality.

A type T implementing this trait should uphold the invariant:

∀ a, b ∈ T. a == b <=> serialize(a) == serialize(b)

That is, if two values a: T and b: T are equal, then so are the values in their serialized representation.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FilterableValue for bool

source§

impl FilterableValue for i8

source§

impl FilterableValue for i16

source§

impl FilterableValue for i32

source§

impl FilterableValue for i64

source§

impl FilterableValue for i128

source§

impl FilterableValue for u8

source§

impl FilterableValue for u16

source§

impl FilterableValue for u32

source§

impl FilterableValue for u64

source§

impl FilterableValue for u128

source§

impl FilterableValue for String

source§

impl FilterableValue for Hash

Implementors§