pub trait GetLinks {
    type EntryType: ?Sized;

    fn get_links(data: &Self::EntryType) -> &Links<Self::EntryType>;
}
Expand description

A descriptor of list elements.

It describes the type of list elements and provides a function to determine how to get the links to be used on a list.

A type that may be in multiple lists simultaneously needs to implement one of these for each simultaneous list.

Required Associated Types

The type of the entries in the list.

Required Methods

Returns the links to be used when linking an entry within a list.

Implementations on Foreign Types

Implementors

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.