Trait redgold_schema::ProtoHashable
source · pub trait ProtoHashablewhere
Self: HashClear + Clone + Message + Default,{
// Required methods
fn calculate_hash(&self) -> Hash;
fn from_hex(hex_value: String) -> Result<Self, ErrorInfo>;
fn div_mod(&self, bucket: usize) -> i64;
}Required Methods§
fn calculate_hash(&self) -> Hash
fn from_hex(hex_value: String) -> Result<Self, ErrorInfo>
fn div_mod(&self, bucket: usize) -> i64
Object Safety§
This trait is not object safe.