pub struct Module {
pub is_crate: bool,
pub items: Vec<Id>,
pub is_stripped: bool,
}Expand description
A module declaration, e.g. mod foo; or mod foo {}.
Fields§
§is_crate: boolWhether this is the root item of a crate.
This item doesn’t correspond to any construction in the source code and is generated by the compiler.
items: Vec<Id>Items declared inside this module.
is_stripped: boolIf true, this module is not part of the public API, but it contains
items that are re-exported as public API.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Module
impl<'de> Deserialize<'de> for Module
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 Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Forget for Module
impl Freeze for Module
impl Move for Module
impl RefUnwindSafe for Module
impl Send for Modulewhere
RawVecInner: Send,
impl Sync for Modulewhere
RawVecInner: Sync,
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Modulewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes