DoxigAlpha

iterator

Function parameters

Parameters

#
self:*Self
start_index:usize

This is a stack data structure where pointers to indexes have the same lifetime as the data structure

Functions

#
SegmentedList
This is a stack data structure where pointers to indexes have the same lifetime as the data structure

Source

Implementation

#
pub fn iterator(self: *Self, start_index: usize) Iterator {
    var it = Iterator{
        .list = self,
        .index = undefined,
        .shelf_index = undefined,
        .box_index = undefined,
        .shelf_size = undefined,
    };
    it.set(start_index);
    return it;
}