pub struct ModDecl {
pub name: String,
pub path: Option<String>,
pub inline: Vec<(String, Option<String>)>,
}Expand description
A mod declaration found in a source file.
Fields§
§name: StringThe module’s name.
path: Option<String>Its #[path = "…"], when set.
inline: Vec<(String, Option<String>)>The inline modules (mod a { … }) it sits in, outermost first, each
with its own #[path] when set.
Trait Implementations§
impl Eq for ModDecl
impl StructuralPartialEq for ModDecl
Auto Trait Implementations§
impl Freeze for ModDecl
impl RefUnwindSafe for ModDecl
impl Send for ModDecl
impl Sync for ModDecl
impl Unpin for ModDecl
impl UnsafeUnpin for ModDecl
impl UnwindSafe for ModDecl
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