pub trait NtTypedList {
    type T: NtListType;
}
Expand description

Designates an empty enum as an NT list of a specific type (singly or doubly linked list).

You are supposed to define an empty enum and implement this trait for every list entry field of every list element type in your program.

This is required, because a single element may be part of multiple NT lists, and henceforth its element structure then contains multiple entry fields (e.g. NtListEntry). To make all list functions insert and remove elements via the correct entry fields, lists need to be uniquely identified, and this is what the empty enum types are for.

The easiest way to implement this trait is to use derive with the appropriate list type (NtList or NtSingleList):

#[derive(NtList)]
enum MyList {}

Required Associated Types

Identifier of the list

Implementors