github.com/MetalBlockchain/metalgo@v1.11.9/vms/platformvm/state/empty_iterator.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package state 5 6 // EmptyIterator contains no stakers. 7 var EmptyIterator StakerIterator = emptyIterator{} 8 9 type emptyIterator struct{} 10 11 func (emptyIterator) Next() bool { 12 return false 13 } 14 15 func (emptyIterator) Value() *Staker { 16 return nil 17 } 18 19 func (emptyIterator) Release() {}