fn fromOwnedSlice(allocator: Allocator, items: []T, context: Context) Self

PriorityQueue takes ownership of the passed in slice. The slice must have been allocated with allocator. Deinitialize with deinit.

Parameters

allocator: Allocator,
items: []T,
context: Context,