[][src]Trait pui_arena::BuildArenaKey

pub trait BuildArenaKey<I, V: Version>: ArenaKey<I, V> {
    pub unsafe fn new_unchecked(index: usize, save: V::Save, ident: &I) -> Self;
}

A trait to create keys from an arena

Required methods

pub unsafe fn new_unchecked(index: usize, save: V::Save, ident: &I) -> Self[src]

Create a new arena key given an index, version save, and identifier

Safety

  • index must be in bounds of the arena with the identifier ident
  • save must be the latest save of slot at index in the arena
Loading content...

Implementations on Foreign Types

impl<I: OneShotIdentifier, V: Version> BuildArenaKey<I, V> for Id<I::Token>[src]

Loading content...

Implementors

impl<'scope, V: Version> BuildArenaKey<Scoped<'scope>, V> for ScopedKey<'scope, V::Save>[src]

impl<I, V: Version> BuildArenaKey<I, V> for Key<usize, V::Save>[src]

impl<I, V: Version> BuildArenaKey<I, V> for usize[src]

impl<I: OneShotIdentifier, V: Version> BuildArenaKey<I, V> for Key<Id<I::Token>, V::Save>[src]

Loading content...