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.
Provided Methods§
fn read_partition_keys( &self, ) -> Box<dyn Iterator<Item = (NodeId, PartitionNumber)> + '_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".