pub trait ListableSubstateDatabaseExtensions: ListableSubstateDatabase {
// Provided method
fn read_partition_keys(
&self,
) -> Box<dyn Iterator<Item = (NodeId, PartitionNumber)> + '_> { ... }
}
Expand description
These are a separate trait so that ListableSubstateDatabase
stays object-safe,
and can be used as dyn ListableSubstateDatabase
.
Generic parameters aren’t permitted on object-safe traits.