DoxigAlpha

constIterator

Function parameters

Parameters

#
self:*const 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 constIterator(self: *const Self, start_index: usize) ConstIterator {
    var it = ConstIterator{
        .list = self,
        .index = undefined,
        .shelf_index = undefined,
        .box_index = undefined,
        .shelf_size = undefined,
    };
    it.set(start_index);
    return it;
}