Trait fuel_core::database::storage::ToDatabaseKey
source · pub trait ToDatabaseKey {
type Type<'a>: AsRef<[u8]>
where Self: 'a;
// Required method
fn database_key(&self) -> Self::Type<'_>;
}
Expand description
Some keys requires pre-processing that could change their type.
Required Associated Types§
Required Methods§
sourcefn database_key(&self) -> Self::Type<'_>
fn database_key(&self) -> Self::Type<'_>
Coverts the key into database key that supports byte presentation.