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: I
Trait Implementations
sourceimpl<I: Ord + ItemIndex> Ord for Local<I>
impl<I: Ord + ItemIndex> Ord for Local<I>
sourceimpl<I: PartialOrd + ItemIndex> PartialOrd<Local<I>> for Local<I>
impl<I: PartialOrd + ItemIndex> PartialOrd<Local<I>> for Local<I>
sourcefn partial_cmp(&self, other: &Local<I>) -> Option<Ordering>
fn partial_cmp(&self, other: &Local<I>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<I: Copy + ItemIndex> Copy for Local<I>
impl<I: Eq + ItemIndex> Eq for Local<I>
impl<I: ItemIndex> StructuralEq for Local<I>
impl<I: ItemIndex> StructuralPartialEq for Local<I>
Auto Trait Implementations
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> UnwindSafe for Local<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more