Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
dmd.dstruct
Struct and union declarations.
Specification Structs, Unions
Authors:
License:
Source dstruct.d
Documentation https://dlang.org/phobos/dmd_dstruct.html
- class
StructDeclaration: dmd.aggregate.AggregateDeclaration; - All struct declarations are an instance of this.
- final bool
hasCopyConstruction(); - Determine if struct has copy construction (copy constructor or postblit)Returns:true if struct has copy construction
- class
UnionDeclaration: dmd.dstruct.StructDeclaration; - Unions are a variation on structs.
Copyright © 1999-2026 by the D Language Foundation | Page generated by
Ddoc on Thu Jan 15 22:38:55 2026