[−][src]Trait arae::Cursed
Cursed
types provide the ability to access their elements via Cursor
s.
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.