pub struct MetadataHasher<'a> { /* private fields */ }Expand description
Obtain a hash representation of our metadata or some part of it.
This is obtained by calling crate::Metadata::hasher().
Implementations§
Source§impl<'a> MetadataHasher<'a>
impl<'a> MetadataHasher<'a>
Sourcepub fn only_these_pallets<S: AsRef<str>>(
&mut self,
specific_pallets: &'a [S],
) -> &mut Self
pub fn only_these_pallets<S: AsRef<str>>( &mut self, specific_pallets: &'a [S], ) -> &mut Self
Only hash the provided pallets instead of hashing every pallet.
Sourcepub fn only_these_runtime_apis<S: AsRef<str>>(
&mut self,
specific_runtime_apis: &'a [S],
) -> &mut Self
pub fn only_these_runtime_apis<S: AsRef<str>>( &mut self, specific_runtime_apis: &'a [S], ) -> &mut Self
Only hash the provided runtime APIs instead of hashing every runtime API
Sourcepub fn ignore_custom_values(&mut self) -> &mut Self
pub fn ignore_custom_values(&mut self) -> &mut Self
Do not hash the custom values
Auto Trait Implementations§
impl<'a> Freeze for MetadataHasher<'a>
impl<'a> RefUnwindSafe for MetadataHasher<'a>
impl<'a> Send for MetadataHasher<'a>
impl<'a> Sync for MetadataHasher<'a>
impl<'a> Unpin for MetadataHasher<'a>
impl<'a> UnwindSafe for MetadataHasher<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more