pub struct ModuleScope {
pub path: Vec<Name>,
pub span: Span,
pub declaration: Option<Span>,
pub declarations: Vec<ModuleDeclaration>,
pub imports: Vec<ImportBinding>,
}Expand description
File-relative module ownership used only by navigation.
Fields§
§path: Vec<Name>§span: Span§declaration: Option<Span>The inline module’s name; absent for the file root.
declarations: Vec<ModuleDeclaration>§imports: Vec<ImportBinding>Trait Implementations§
Source§impl Clone for ModuleScope
impl Clone for ModuleScope
Source§impl Debug for ModuleScope
impl Debug for ModuleScope
Source§impl<'de> Deserialize<'de> for ModuleScope
impl<'de> Deserialize<'de> for ModuleScope
Source§fn 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
impl Eq for ModuleScope
Source§impl PartialEq for ModuleScope
impl PartialEq for ModuleScope
Source§impl Serialize for ModuleScope
impl Serialize for ModuleScope
impl StructuralPartialEq for ModuleScope
Auto Trait Implementations§
impl Freeze for ModuleScope
impl RefUnwindSafe for ModuleScope
impl Send for ModuleScope
impl Sync for ModuleScope
impl Unpin for ModuleScope
impl UnsafeUnpin for ModuleScope
impl UnwindSafe for ModuleScope
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