Struct ink_metadata::layout::HashLayout
source · pub struct HashLayout<F: Form = MetaForm> { /* private fields */ }
Expand description
A hashing layout potentially hitting all cells of the storage.
Every hashing layout has an offset and a strategy to compute its keys.
Implementations§
source§impl HashLayout
impl HashLayout
source§impl<F> HashLayout<F>where
F: Form,
impl<F> HashLayout<F>where
F: Form,
Trait Implementations§
source§impl<F: Debug + Form> Debug for HashLayout<F>
impl<F: Debug + Form> Debug for HashLayout<F>
source§impl<'de, F: Form> Deserialize<'de> for HashLayout<F>where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
impl<'de, F: Form> Deserialize<'de> for HashLayout<F>where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<F: Form> From<HashLayout<F>> for Layout<F>
impl<F: Form> From<HashLayout<F>> for Layout<F>
source§fn from(original: HashLayout<F>) -> Layout<F>
fn from(original: HashLayout<F>) -> Layout<F>
Converts to this type from the input type.
source§impl IntoPortable for HashLayout
impl IntoPortable for HashLayout
§type Output = HashLayout<PortableForm>
type Output = HashLayout<PortableForm>
The portable version of
Self
.source§fn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.source§impl<F: Ord + Form> Ord for HashLayout<F>
impl<F: Ord + Form> Ord for HashLayout<F>
source§fn cmp(&self, other: &HashLayout<F>) -> Ordering
fn cmp(&self, other: &HashLayout<F>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<F: PartialEq + Form> PartialEq<HashLayout<F>> for HashLayout<F>
impl<F: PartialEq + Form> PartialEq<HashLayout<F>> for HashLayout<F>
source§fn eq(&self, other: &HashLayout<F>) -> bool
fn eq(&self, other: &HashLayout<F>) -> bool
source§impl<F: PartialOrd + Form> PartialOrd<HashLayout<F>> for HashLayout<F>
impl<F: PartialOrd + Form> PartialOrd<HashLayout<F>> for HashLayout<F>
source§fn partial_cmp(&self, other: &HashLayout<F>) -> Option<Ordering>
fn partial_cmp(&self, other: &HashLayout<F>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more