Enum rustc_resolve::late::MaybeExported
source · enum MaybeExported<'a> {
Ok(NodeId),
Impl(Option<DefId>),
ImplItem(Result<DefId, &'a Visibility>),
NestedUse(&'a Visibility),
}
Expand description
At this point for most items we can answer whether that item is exported or not, but some items like impls require type information to determine exported-ness, so we make a conservative estimate for them (e.g. based on nominal visibility).
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Clone for MaybeExported<'a>
impl<'a> Clone for MaybeExported<'a>
source§fn clone(&self) -> MaybeExported<'a>
fn clone(&self) -> MaybeExported<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for MaybeExported<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MaybeExported<'a>
impl<'a> !Send for MaybeExported<'a>
impl<'a> !Sync for MaybeExported<'a>
impl<'a> Unpin for MaybeExported<'a>
impl<'a> !UnwindSafe for MaybeExported<'a>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Ok
: 8 bytesImpl
: 12 bytesImplItem
: 16 bytesNestedUse
: 16 bytes