[−][src]Struct pui_arena::scoped::ScopedKey
A key into scoped arenas
This type only exists to make error messages easier to parse
Trait Implementations
impl<'scope, V: Version> ArenaKey<Scoped<'scope>, V> for ScopedKey<'scope, V::Save>
[src]
pub fn validate_ident<'a>(
&self,
ident: &'a Scoped<'scope>,
validator: Validator<'a>
) -> CompleteValidator<'a>
[src]
&self,
ident: &'a Scoped<'scope>,
validator: Validator<'a>
) -> CompleteValidator<'a>
pub fn index(&self) -> usize
[src]
pub fn version(&self) -> Option<V::Save>
[src]
impl<'scope, V> AsMut<Key<Id<ScopedToken<'scope>>, V>> for ScopedKey<'scope, V>
[src]
pub fn as_mut(&mut self) -> &mut Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> AsMut<ScopedKey<'scope, V>> for Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> AsRef<Key<Id<ScopedToken<'scope>>, V>> for ScopedKey<'scope, V>
[src]
pub fn as_ref(&self) -> &Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> AsRef<ScopedKey<'scope, V>> for Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> Borrow<Key<Id<ScopedToken<'scope>>, V>> for ScopedKey<'scope, V>
[src]
pub fn borrow(&self) -> &Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> Borrow<ScopedKey<'scope, V>> for Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> BorrowMut<Key<Id<ScopedToken<'scope>>, V>> for ScopedKey<'scope, V>
[src]
pub fn borrow_mut(&mut self) -> &mut Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V> BorrowMut<ScopedKey<'scope, V>> for Key<Id<ScopedToken<'scope>>, V>
[src]
pub fn borrow_mut(&mut self) -> &mut ScopedKey<'scope, V>
[src]
impl<'scope, V: Version> BuildArenaKey<Scoped<'scope>, V> for ScopedKey<'scope, V::Save>
[src]
pub unsafe fn new_unchecked(
index: usize,
save: V::Save,
ident: &Scoped<'scope>
) -> Self
[src]
index: usize,
save: V::Save,
ident: &Scoped<'scope>
) -> Self
impl<'scope, V: Clone> Clone for ScopedKey<'scope, V>
[src]
pub fn clone(&self) -> ScopedKey<'scope, V>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'scope, V: Copy> Copy for ScopedKey<'scope, V>
[src]
impl<'scope, V: Debug> Debug for ScopedKey<'scope, V>
[src]
impl<'scope, V: Eq> Eq for ScopedKey<'scope, V>
[src]
impl<'scope, V> From<Key<Id<ScopedToken<'scope>>, V>> for ScopedKey<'scope, V>
[src]
pub fn from(key: Key<Id<ScopedToken<'scope>>, V>) -> Self
[src]
impl<'scope, V> From<ScopedKey<'scope, V>> for Key<Id<ScopedToken<'scope>>, V>
[src]
impl<'scope, V: Hash> Hash for ScopedKey<'scope, V>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'scope, T, V: Version> Index<ScopedKey<'scope, <V as Version>::Save>> for ScopedArena<'scope, T, V>
[src]
type Output = T
The returned type after indexing.
pub fn index(&self, index: Key<'scope, V>) -> &Self::Output
[src]
impl<'scope, T, V: Version> Index<ScopedKey<'scope, <V as Version>::Save>> for ScopedArena<'scope, T, V>
[src]
type Output = T
The returned type after indexing.
pub fn index(&self, index: Key<'scope, V>) -> &Self::Output
[src]
impl<'scope, T, V: Version> Index<ScopedKey<'scope, <V as Version>::Save>> for ScopedArena<'scope, T, V>
[src]
type Output = T
The returned type after indexing.
pub fn index(&self, index: Key<'scope, V>) -> &Self::Output
[src]
impl<'scope, T, V: Version> IndexMut<ScopedKey<'scope, <V as Version>::Save>> for ScopedArena<'scope, T, V>
[src]
impl<'scope, T, V: Version> IndexMut<ScopedKey<'scope, <V as Version>::Save>> for ScopedArena<'scope, T, V>
[src]
impl<'scope, T, V: Version> IndexMut<ScopedKey<'scope, <V as Version>::Save>> for ScopedArena<'scope, T, V>
[src]
impl<'scope, V: Ord> Ord for ScopedKey<'scope, V>
[src]
pub fn cmp(&self, other: &ScopedKey<'scope, V>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'scope, V: PartialEq> PartialEq<ScopedKey<'scope, V>> for ScopedKey<'scope, V>
[src]
pub fn eq(&self, other: &ScopedKey<'scope, V>) -> bool
[src]
pub fn ne(&self, other: &ScopedKey<'scope, V>) -> bool
[src]
impl<'scope, V: PartialOrd> PartialOrd<ScopedKey<'scope, V>> for ScopedKey<'scope, V>
[src]
pub fn partial_cmp(&self, other: &ScopedKey<'scope, V>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ScopedKey<'scope, V>) -> bool
[src]
pub fn le(&self, other: &ScopedKey<'scope, V>) -> bool
[src]
pub fn gt(&self, other: &ScopedKey<'scope, V>) -> bool
[src]
pub fn ge(&self, other: &ScopedKey<'scope, V>) -> bool
[src]
impl<'scope, V> StructuralEq for ScopedKey<'scope, V>
[src]
impl<'scope, V> StructuralPartialEq for ScopedKey<'scope, V>
[src]
Auto Trait Implementations
impl<'scope, V> Send for ScopedKey<'scope, V> where
V: Send,
[src]
V: Send,
impl<'scope, V> Sync for ScopedKey<'scope, V> where
V: Sync,
[src]
V: Sync,
impl<'scope, V> Unpin for ScopedKey<'scope, V> where
V: Unpin,
[src]
V: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,