method ClusterIds.next
A cluster-wide unique id: the number of this node in the high bits, a counter in the low ones (0 for the node part outside a cluster).
Example:
fn main() io {
let a = cluster.ids.next()
let b = cluster.ids.next()
print("{b > a}")
}Вывод
true
pub(api) fn next() -> i64Сложность. O(1).
С версии. 1.0.0-beta
Возвращает
i64
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/node.oxl:671