rank

val rank: Int

The rank of this contributed binding. The rank should be changed only if you don't have access to the contributed binding class that you want to replace at compile time. If you have access and can reference the other class, then it's highly suggested to use replaces instead.

In case of a duplicate binding for multiple contributed bindings, the binding with the highest rank will be used and replace other contributed bindings for the same type with a lower rank. If duplicate contributed bindings use the same rank, then there will be an error for duplicate bindings.

Note that replaces takes precedence. If you explicitly replace a binding, it won't be considered no matter what its rank is.

All contributed bindings have a RANK_NORMAL rank by default.