DoxigAlpha

init

Initialize and return a new priority dequeue.

Function parameters

Parameters

#
context:Context

Priority Dequeue for storing generic data.

Functions

#
PriorityDequeue
Priority Dequeue for storing generic data.

Source

Implementation

#
pub fn init(allocator: Allocator, context: Context) Self {
    return Self{
        .items = &[_]T{},
        .len = 0,
        .allocator = allocator,
        .context = context,
    };
}