[][src]Trait arae::Cursed

pub unsafe trait Cursed<T> {
    fn is_owner(&self, cursor: Cursor<T>) -> bool;
}

Cursed types provide the ability to access their elements via Cursors.

Safety

See the notes on the single function this trait requires: is_owner.

Required methods

fn is_owner(&self, cursor: Cursor<T>) -> bool

Returns true if the Cursor is owned by self, false if not.

This check determines whether or not a Cursor is pointing to valid memory, owned by self at the time of calling, and is used when dereferencing the Cursor.

The actual operation of checking if the the cursor is owned is not unsafe, however implementations of this trait must ensure the Cursor is pointing to valid memory owned by self, and that it does not disappear while self is alive.

Loading content...

Implementors

impl<T> Cursed<T> for CurVec<T>[src]

Loading content...