Trait intrusive_containers::linked_list::OwningPointer [] [src]

pub unsafe trait OwningPointer: DerefMut {
    unsafe fn from_raw(raw: *mut Self::Target) -> Self;
    unsafe fn take(self);
}

A trait that allows insertion into a LinkedList. The trait is unsafe to implement due to the following constraints: 1) The deref functions must always return the same reference 2) The object cannot be moved while in the LinkedList 3) No references (mutable or otherwise) to the target can be used while list operations are ongoing

Required Methods

unsafe fn from_raw(raw: *mut Self::Target) -> Self

unsafe fn take(self)

Implementors