MCPcopy
hub / github.com/duke-git/lancet / ResettableIterator

Interface ResettableIterator

iterator/iterator.go:31–36  ·  view source on GitHub ↗

ResettableIterator supports to reset the iterator

Source from the content-addressed store, hash-verified

29
30// ResettableIterator supports to reset the iterator
31type ResettableIterator[T any] interface {
32 Iterator[T]
33 // Reset allows for the iteration process over a sequence to be restarted from the beginning.
34 // It enables reusing the iterator for multiple traversals without needing to recreate it.
35 Reset()
36}
37
38// StopIterator is an interface for stopping Iterator.
39type StopIterator[T any] interface {

Callers 4

ToBytesFunction · 0.65
TestSliceIteratorFunction · 0.65
TestRangeIteratorFunction · 0.65
newSm3Function · 0.65

Implementers 2

Watcherfunction/watcher.go
sm3Digestcryptor/gm_sm3.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…