pub enum Reason<'a> {
Imported(ImportedReason<'a>),
Entry,
}Variants
Imported(ImportedReason<'a>)
This module was requested by some other module
Entry
The module was directly required by an entrypoint. This corresponds to having no module_id present in the stats file
Trait Implementations
sourceimpl<'de: 'a, 'a> Deserialize<'de> for Reason<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Reason<'a>
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Reason<'a>
impl<'a> Send for Reason<'a>
impl<'a> Sync for Reason<'a>
impl<'a> Unpin for Reason<'a>
impl<'a> UnwindSafe for Reason<'a>
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