pub struct Module { /* private fields */ }Expand description
Implementations§
Source§impl Module
impl Module
Sourcepub fn new(items: ModuleItemList) -> Self
pub fn new(items: ModuleItemList) -> Self
Creates a new ModuleNode.
Sourcepub const fn items(&self) -> &ModuleItemList
pub const fn items(&self) -> &ModuleItemList
Gets the list of items of this ModuleNode.
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
Source§impl<'a> From<&'a mut Module> for NodeRefMut<'a>
impl<'a> From<&'a mut Module> for NodeRefMut<'a>
Source§fn from(node: &'a mut Module) -> NodeRefMut<'a>
fn from(node: &'a mut Module) -> NodeRefMut<'a>
Converts to this type from the input type.
impl StructuralPartialEq for Module
Source§impl VisitWith for Module
impl VisitWith for Module
Source§fn visit_with<'a, V>(&'a self, visitor: &mut V) -> ControlFlow<V::BreakTy>where
V: Visitor<'a>,
fn visit_with<'a, V>(&'a self, visitor: &mut V) -> ControlFlow<V::BreakTy>where
V: Visitor<'a>,
Visit this node with the provided visitor.
Source§fn visit_with_mut<'a, V>(
&'a mut self,
visitor: &mut V,
) -> ControlFlow<V::BreakTy>where
V: VisitorMut<'a>,
fn visit_with_mut<'a, V>(
&'a mut self,
visitor: &mut V,
) -> ControlFlow<V::BreakTy>where
V: VisitorMut<'a>,
Visit this node with the provided visitor mutably, allowing the visitor to modify private
fields.
Auto Trait Implementations§
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl !UnwindSafe for Module
impl Freeze for Module
impl Unpin for Module
impl UnsafeUnpin for Module
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