Trait anchors::expert::AnchorHandle[][src]

pub trait AnchorHandle: Sized + Clone {
    type Token: Sized + Clone + Copy + PartialEq + Eq + Hash;
    fn token(&self) -> Self::Token;
}

A reference to a particular AnchorInner. Each engine implements its own.

Associated Types

Loading content...

Required methods

fn token(&self) -> Self::Token[src]

Returns a Copyable, comparable, hashable ID corresponding to this AnchorHandle. Some engines may garbage collect an AnchorInner when no more AnchorHandles pointing to it exist, which means it’s possible to have a Token pointing to a since-deleted Anchor.

Loading content...

Implementors

Loading content...