#[non_exhaustive]pub enum ModuleDesc<'a> {
ByLogicalName {
logical_name: Cow<'a, str>,
source_path: Option<Cow<'a, Utf8Path>>,
compiled_module_path: Option<Cow<'a, Utf8Path>>,
},
BySourcePath {
logical_name: Cow<'a, str>,
source_path: Cow<'a, Utf8Path>,
compiled_module_path: Option<Cow<'a, Utf8Path>>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl<'a> ModuleDesc<'a>
impl<'a> ModuleDesc<'a>
pub fn view(&self) -> ModuleDescView<'_>
Trait Implementations§
impl<'a> Eq for ModuleDesc<'a>
Source§impl<'a> Hash for ModuleDesc<'a>
impl<'a> Hash for ModuleDesc<'a>
Source§impl<'a> PartialEq for ModuleDesc<'a>
impl<'a> PartialEq for ModuleDesc<'a>
Source§fn eq(&self, other: &ModuleDesc<'a>) -> bool
fn eq(&self, other: &ModuleDesc<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ModuleDesc<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModuleDesc<'a>
impl<'a> RefUnwindSafe for ModuleDesc<'a>
impl<'a> Send for ModuleDesc<'a>
impl<'a> Sync for ModuleDesc<'a>
impl<'a> Unpin for ModuleDesc<'a>
impl<'a> UnsafeUnpin for ModuleDesc<'a>
impl<'a> UnwindSafe for ModuleDesc<'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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.