Struct kodept_ast::FileDeclaration
source · pub struct FileDeclaration { /* private fields */ }Implementations§
source§impl FileDeclaration
impl FileDeclaration
pub fn modules<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, FileDeclaration, ContainerT<Vec<ModuleDeclaration>>>
pub fn modules_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for FileDeclaration
impl Debug for FileDeclaration
source§impl From<FileDeclaration> for GenericASTNode
impl From<FileDeclaration> for GenericASTNode
source§fn from(original: FileDeclaration) -> GenericASTNode
fn from(original: FileDeclaration) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Vec<ModuleDeclaration> as FromOptVec>::T> for FileDeclaration
impl HasChildrenMarker<<Vec<ModuleDeclaration> as FromOptVec>::T> for FileDeclaration
type Container = Vec<ModuleDeclaration>
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 FileDeclaration
impl Identifiable for FileDeclaration
source§impl PartialEq for FileDeclaration
impl PartialEq for FileDeclaration
source§fn eq(&self, other: &FileDeclaration) -> bool
fn eq(&self, other: &FileDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime FileDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime FileDeclaration
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut FileDeclaration
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut FileDeclaration
source§impl TryFrom<GenericASTNode> for FileDeclaration
impl TryFrom<GenericASTNode> for FileDeclaration
impl StructuralPartialEq for FileDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for FileDeclaration
impl Send for FileDeclaration
impl Sync for FileDeclaration
impl Unpin for FileDeclaration
impl UnwindSafe for FileDeclaration
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