[][src]Trait pui_core::Token

pub unsafe trait Token: Clone + Eq { }

A type that an Identifier produces and is owned by an Identifier

If two tokens compare equal, then they should behave identically under Identifier::owns_token operation.

Safety

  • it should be not possible to change the behavior of PartialEq::eq or Identifier::owns_token via a shared reference to a Token
  • clones/copies of a token should be equal to each other

Implementors

impl Token for ScopedToken<'_>[src]

impl<A: ScalarAllocator> Token for DynamicToken<A>[src]

Loading content...