pub struct DominatingImport {
pub importer: FileId,
pub target: FileId,
pub import_span_start: Option<u32>,
pub exclusive_modules: usize,
pub exclusive_weight: u64,
}Expand description
One import edge that alone keeps a subtree of the eager closure eager.
Fields§
§importer: FileIdThe module that contains the import.
target: FileIdThe imported module; the root of the subtree that the edge keeps eager.
import_span_start: Option<u32>Byte offset of the first static, value-carrying binding on the edge.
None for an edge without a binding span, such as a re-export or an
eager glob match.
exclusive_modules: usizeModules that leave the eager closure if the edge becomes an import().
exclusive_weight: u64Summed weight of those modules.
Trait Implementations§
Source§impl Clone for DominatingImport
impl Clone for DominatingImport
Source§fn clone(&self) -> DominatingImport
fn clone(&self) -> DominatingImport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DominatingImport
Source§impl Debug for DominatingImport
impl Debug for DominatingImport
impl Eq for DominatingImport
Source§impl PartialEq for DominatingImport
impl PartialEq for DominatingImport
impl StructuralPartialEq for DominatingImport
Auto Trait Implementations§
impl Freeze for DominatingImport
impl RefUnwindSafe for DominatingImport
impl Send for DominatingImport
impl Sync for DominatingImport
impl Unpin for DominatingImport
impl UnsafeUnpin for DominatingImport
impl UnwindSafe for DominatingImport
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more