pub struct ScopeMod {
pub token: Mod,
pub ident: Ident,
pub brace: Brace,
pub contents: Scope,
}
Expand description
A module supporting impl Self
syntax
This type is used for parsing. Expansion should use Self::contents
directly, ignoring all other fields.
Fields§
§token: Mod
Module declaration
ident: Ident
Module name
brace: Brace
Braces
contents: Scope
Contents
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeMod
impl RefUnwindSafe for ScopeMod
impl !Send for ScopeMod
impl !Sync for ScopeMod
impl Unpin for ScopeMod
impl UnwindSafe for ScopeMod
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