[−][src]Struct ra_ap_hir_def::nameres::ModuleData
Fields
parent: Option<LocalModuleId>
children: FxHashMap<Name, LocalModuleId>
scope: ItemScope
origin: ModuleOrigin
Where does this module come from?
Implementations
impl ModuleData
[src]
pub fn definition_source(&self, db: &dyn DefDatabase) -> InFile<ModuleSource>
[src]
Returns a node which defines this module. That is, a file or a mod foo {}
with items.
pub fn declaration_source(&self, db: &dyn DefDatabase) -> Option<InFile<Module>>
[src]
Returns a node which declares this module, either a mod foo;
or a mod foo {}
.
None
for the crate root or block.
Trait Implementations
impl Debug for ModuleData
[src]
impl Default for ModuleData
[src]
fn default() -> ModuleData
[src]
impl Eq for ModuleData
[src]
impl PartialEq<ModuleData> for ModuleData
[src]
fn eq(&self, other: &ModuleData) -> bool
[src]
fn ne(&self, other: &ModuleData) -> bool
[src]
impl StructuralEq for ModuleData
[src]
impl StructuralPartialEq for ModuleData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ModuleData
impl Send for ModuleData
impl Sync for ModuleData
impl Unpin for ModuleData
impl UnwindSafe for ModuleData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,