pub struct Local<I: ItemIndex>(pub I);Expand description
An ItemIndex that is local to a module.
This index is usually part of a CrossModuleRef. It cannot be used to
query the TypeInformation or IdInformation
streams directly. Instead, it must be looked up in the
CrossModuleImports of the module it belongs to in order to obtain
the global index.
See ItemIndex::is_cross_module for more information.
Tuple Fields§
§0: ITrait Implementations§
impl<I: Copy + ItemIndex> Copy for Local<I>
impl<I: Eq + ItemIndex> Eq for Local<I>
Source§impl<I: Ord + ItemIndex> Ord for Local<I>
impl<I: Ord + ItemIndex> Ord for Local<I>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I: PartialOrd + ItemIndex> PartialOrd for Local<I>
impl<I: PartialOrd + ItemIndex> PartialOrd for Local<I>
impl<I: PartialEq + ItemIndex> StructuralPartialEq for Local<I>
Auto Trait Implementations§
impl<I> Freeze for Local<I>where
I: Freeze,
impl<I> RefUnwindSafe for Local<I>where
I: RefUnwindSafe,
impl<I> Send for Local<I>where
I: Send,
impl<I> Sync for Local<I>where
I: Sync,
impl<I> Unpin for Local<I>where
I: Unpin,
impl<I> UnsafeUnpin for Local<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for Local<I>where
I: 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