Struct stack_graphs::arena::Handle [−][src]
pub struct Handle<T> { /* fields omitted */ }
Expand description
A handle to an instance of type T
that was allocated from an Arena
.
Safety
Because of the type parameter T
, the compiler can ensure that you don’t use a handle for one
type to index into an arena of another type. However, if you have multiple arenas for the
same type, we do not do anything to ensure that you only use a handle with the corresponding
arena.
Implementations
Trait Implementations
impl Index<Handle<File>> for StackGraph
[src]
impl Index<Handle<File>> for StackGraph
[src]impl<H, T> Index<Handle<H>> for SupplementalArena<H, T>
[src]
impl<H, T> Index<Handle<H>> for SupplementalArena<H, T>
[src]impl Index<Handle<Node>> for StackGraph
[src]
impl Index<Handle<Node>> for StackGraph
[src]impl Index<Handle<Symbol>> for StackGraph
[src]
impl Index<Handle<Symbol>> for StackGraph
[src]impl<H, T> IndexMut<Handle<H>> for SupplementalArena<H, T> where
T: Default,
[src]
impl<H, T> IndexMut<Handle<H>> for SupplementalArena<H, T> where
T: Default,
[src]impl IndexMut<Handle<Node>> for StackGraph
[src]
impl IndexMut<Handle<Node>> for StackGraph
[src]impl<T> Ord for Handle<T>
[src]
impl<T> Ord for Handle<T>
[src]impl<T> PartialOrd<Handle<T>> for Handle<T>
[src]
impl<T> PartialOrd<Handle<T>> for Handle<T>
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T> Copy for Handle<T>
[src]
impl<T> Eq for Handle<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Handle<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Handle<T> where
T: Send,
T: Send,
impl<T> Sync for Handle<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Handle<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Handle<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more