pub trait GroupKeyTable {
// Required methods
fn capacity(&self) -> usize;
fn len(&self) -> usize;
fn destinations(&self) -> &[DestinationHash];
fn keys(&self) -> &[GroupKey];
fn upsert(
&mut self,
destination: DestinationHash,
key: GroupKey,
) -> Result<(), TablePushError>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Required Methods§
fn capacity(&self) -> usize
fn len(&self) -> usize
fn destinations(&self) -> &[DestinationHash]
fn keys(&self) -> &[GroupKey]
fn upsert( &mut self, destination: DestinationHash, key: GroupKey, ) -> Result<(), TablePushError>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".