pub trait DBData:
Default
+ Clone
+ Eq
+ Ord
+ Hash
+ SizeOf
+ Send
+ Sync
+ Debug
+ ArchivedDBData
+ 'static { }
Expand description
Trait for data stored in batches.
This trait is used as a bound on BatchReader::Key
and BatchReader::Val
associated types (see [trait BatchReader
]). Hence when writing code that
must be generic over any relational data, it is sufficient to impose
DBData
as a trait bound on types. Conversely, a trait bound of the form
B: BatchReader
implies B::Key: DBData
and B::Val: DBData
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.