pub struct ModuleDecl {
pub name: String,
pub name_span: Span,
pub doc_comment: Option<DocComment>,
pub annotations: Vec<Annotation>,
pub items: Vec<Item>,
}Fields§
§name: String§name_span: Span§doc_comment: Option<DocComment>§annotations: Vec<Annotation>§items: Vec<Item>Trait Implementations§
Source§impl Clone for ModuleDecl
impl Clone for ModuleDecl
Source§fn clone(&self) -> ModuleDecl
fn clone(&self) -> ModuleDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleDecl
impl Debug for ModuleDecl
Source§impl<'de> Deserialize<'de> for ModuleDecl
impl<'de> Deserialize<'de> for ModuleDecl
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
Auto Trait Implementations§
impl Freeze for ModuleDecl
impl RefUnwindSafe for ModuleDecl
impl Send for ModuleDecl
impl Sync for ModuleDecl
impl Unpin for ModuleDecl
impl UnsafeUnpin for ModuleDecl
impl UnwindSafe for ModuleDecl
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