pub struct Handle<T> { /* private fields */ }
Expand description
A strongly typed reference to an arena item.
A Handle
value can be used as an index into an Arena
or UniqueArena
.
Implementations§
Trait Implementations§
source§impl Index<Handle<Expression>> for FunctionInfo
impl Index<Handle<Expression>> for FunctionInfo
§type Output = ExpressionInfo
type Output = ExpressionInfo
The returned type after indexing.
source§fn index(&self, handle: Handle<Expression>) -> &ExpressionInfo
fn index(&self, handle: Handle<Expression>) -> &ExpressionInfo
Performs the indexing (
container[index]
) operation. Read moresource§impl Index<Handle<Expression>> for ModuleInfo
impl Index<Handle<Expression>> for ModuleInfo
§type Output = TypeResolution
type Output = TypeResolution
The returned type after indexing.
source§impl Index<Handle<Expression>> for Typifier
impl Index<Handle<Expression>> for Typifier
§type Output = TypeResolution
type Output = TypeResolution
The returned type after indexing.
source§impl Index<Handle<GlobalVariable>> for FunctionInfo
impl Index<Handle<GlobalVariable>> for FunctionInfo
source§impl<T> Index<Handle<T>> for UniqueArena<T>
impl<T> Index<Handle<T>> for UniqueArena<T>
source§impl Index<Handle<Type>> for Layouter
impl Index<Handle<Type>> for Layouter
§type Output = TypeLayout
type Output = TypeLayout
The returned type after indexing.
source§impl<T> Ord for Handle<T>
impl<T> Ord for Handle<T>
source§impl<T> PartialEq for Handle<T>
impl<T> PartialEq for Handle<T>
source§impl<T> PartialOrd for Handle<T>
impl<T> PartialOrd for Handle<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T> Copy for Handle<T>
impl<T> Eq for Handle<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Handle<T>where
T: RefUnwindSafe,
impl<T> Send for Handle<T>where
T: Send,
impl<T> Sync for Handle<T>where
T: Sync,
impl<T> Unpin for Handle<T>where
T: Unpin,
impl<T> UnwindSafe for Handle<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.