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