Struct kodept_ast::ModuleDeclaration
source · pub struct ModuleDeclaration {
pub kind: ModuleKind,
pub name: String,
/* private fields */
}Fields§
§kind: ModuleKind§name: StringImplementations§
source§impl ModuleDeclaration
impl ModuleDeclaration
pub fn contents<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, ModuleDeclaration, ContainerT<Vec<TopLevel>>>
pub fn contents_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for ModuleDeclaration
impl Debug for ModuleDeclaration
source§impl From<ModuleDeclaration> for GenericASTNode
impl From<ModuleDeclaration> for GenericASTNode
source§fn from(original: ModuleDeclaration) -> GenericASTNode
fn from(original: ModuleDeclaration) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Vec<TopLevel> as FromOptVec>::T> for ModuleDeclaration
impl HasChildrenMarker<<Vec<TopLevel> as FromOptVec>::T> for ModuleDeclaration
type Container = Vec<TopLevel>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl Identifiable for ModuleDeclaration
impl Identifiable for ModuleDeclaration
source§impl PartialEq for ModuleDeclaration
impl PartialEq for ModuleDeclaration
source§fn eq(&self, other: &ModuleDeclaration) -> bool
fn eq(&self, other: &ModuleDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ModuleDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ModuleDeclaration
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ModuleDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ModuleDeclaration
source§impl TryFrom<GenericASTNode> for ModuleDeclaration
impl TryFrom<GenericASTNode> for ModuleDeclaration
impl StructuralPartialEq for ModuleDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for ModuleDeclaration
impl Send for ModuleDeclaration
impl Sync for ModuleDeclaration
impl Unpin for ModuleDeclaration
impl UnwindSafe for ModuleDeclaration
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