use crate::list::linked_list::state::ListEntry;
pub(crate) trait ListElement<Tag> {
type Type: ?Sized;
fn get_entry(&self) -> &ListEntry<Self::Type>;
#[allow(
clippy::mut_from_ref,
reason = "List elements are always shared, but we require write access to the list entry regardless. So this must be a mutable return value."
)]
fn get_entry_mut(&self) -> &mut ListEntry<Self::Type>;
}