You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
/// A trait for querying whether a type can be said to statically "contain" a value. Similar/// in nature to `Get`, except it is designed to be lazy rather than active (you can't ask it to/// enumerate all values that it contains) and work for multiple values rather than just one.pubtraitContains<T:Ord>{
But first it contains fn sorted_members() -> Vec<T> which contradict its doc
And second it is implemented by election phragmen. As elected set are contained.
It can change every N blocks, is that a legit implementation of the trait ?
can we expect an implementation of Get to change every era and involves storage reads?
I think the trait should be changed (either renamed or change its doc)
The text was updated successfully, but these errors were encountered:
gui1117
changed the title
Contains trait seems misused and with outdated documentation.Contains trait seems missused and with outdated documentation.
Apr 20, 2020
the doc of trait
Contains
say:But first it contains
fn sorted_members() -> Vec<T>
which contradict its docAnd second it is implemented by election phragmen.
As elected set are contained.It can change every N blocks, is that a legit implementation of the trait ?
can we expect an implementation of Get to change every era and involves storage reads?
I think the trait should be changed (either renamed or change its doc)
The text was updated successfully, but these errors were encountered: