mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
committed by
GitHub
parent
cac9d85cb3
commit
fcfb766366
@@ -1749,7 +1749,7 @@ pub mod pallet_prelude {
|
||||
/// ```
|
||||
///
|
||||
/// The optional attribute `#[pallet::unbounded]` allows to declare the storage as unbounded.
|
||||
/// When implementating the storage info (when #[pallet::generate_storage_info]` is specified
|
||||
/// When implementating the storage info (when `#[pallet::generate_storage_info]` is specified
|
||||
/// on the pallet struct placeholder), the size of the storage will be declared as unbounded.
|
||||
/// This can be useful for storage which can never go into PoV (Proof of Validity).
|
||||
///
|
||||
|
||||
@@ -130,7 +130,7 @@ impl<T, S> BoundedVec<T, S> {
|
||||
self.0.retain(f)
|
||||
}
|
||||
|
||||
/// Exactly the same semantics as [`Vec::get_mut`].
|
||||
/// Exactly the same semantics as [`slice::get_mut`].
|
||||
pub fn get_mut<I: SliceIndex<[T]>>(
|
||||
&mut self,
|
||||
index: I,
|
||||
|
||||
@@ -90,7 +90,7 @@ impl<T, S> WeakBoundedVec<T, S> {
|
||||
self.0.retain(f)
|
||||
}
|
||||
|
||||
/// Exactly the same semantics as [`Vec::get_mut`].
|
||||
/// Exactly the same semantics as [`slice::get_mut`].
|
||||
pub fn get_mut<I: SliceIndex<[T]>>(
|
||||
&mut self,
|
||||
index: I,
|
||||
|
||||
@@ -301,7 +301,7 @@ pub trait PrivilegeCmp<Origin> {
|
||||
|
||||
/// Implementation of [`PrivilegeCmp`] that only checks for equal origins.
|
||||
///
|
||||
/// This means it will either return [`Origin::Equal`] or `None`.
|
||||
/// This means it will either return [`Ordering::Equal`] or `None`.
|
||||
pub struct EqualPrivilegeOnly;
|
||||
impl<Origin: PartialEq> PrivilegeCmp<Origin> for EqualPrivilegeOnly {
|
||||
fn cmp_privilege(left: &Origin, right: &Origin) -> Option<Ordering> {
|
||||
|
||||
Reference in New Issue
Block a user