pub struct RustModule {
pub path: String,
pub doc_comment: Option<String>,
pub parsed_doc: Option<ParsedDocstring>,
pub items: Vec<RustItem>,
pub source: SourceSpan,
}Expand description
A Rust module with its items
Fields§
§path: String§doc_comment: Option<String>§parsed_doc: Option<ParsedDocstring>§items: Vec<RustItem>§source: SourceSpanImplementations§
Trait Implementations§
Source§impl Clone for RustModule
impl Clone for RustModule
Source§fn clone(&self) -> RustModule
fn clone(&self) -> RustModule
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 RustModule
impl Debug for RustModule
Source§impl<'de> Deserialize<'de> for RustModule
impl<'de> Deserialize<'de> for RustModule
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
Source§impl From<RustModule> for Module
impl From<RustModule> for Module
Source§fn from(m: RustModule) -> Self
fn from(m: RustModule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RustModule
impl RefUnwindSafe for RustModule
impl Send for RustModule
impl Sync for RustModule
impl Unpin for RustModule
impl UnsafeUnpin for RustModule
impl UnwindSafe for RustModule
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