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
- FuncDeclarationsearch_toString(StructDeclarationsd);
- Search sd for a member function of the form: extern (D) string toString();Parameters:StructDeclaration sdstruct declaration to search Returns:FuncDeclaration of toString() if found, null if not
- classStructDeclaration: dmd.aggregate.AggregateDeclaration;
- All struct declarations are an instance of this.- final voiddetermineTypeProperties();
- Compute cached type properties for TypeStruct
- final boolisPOD();
- Determine if struct is POD (Plain Old Data).POD is defined as:- not nested
- no postblits, destructors, or assignment operators
- no ref fields or fields that are themselves non-POD
 Returns:true if struct is POD
- final boolhasCopyConstruction();
- Determine if struct has copy construction (copy constructor or postblit)Returns:true if struct has copy construction
- final boolhasRegularCtor(boolcheckDisabled= false);
- Verifies whether the struct declaration has a constructor that is not a copy constructor. Optionally, it can check whether the struct declaration has a regular constructor, that is not disabled.Parameters:bool checkDisabledif the struct has a regular non-disabled constructor Returns:true, if the struct has a regular (optionally, not disabled) constructor, false otherwise.
 
- bool_isZeroInit(Expressionexp);
- Determine if exp is all binary zeros.Parameters:Expression expexpression to check Returns:true if it's all binary 0
- classUnionDeclaration: dmd.dstruct.StructDeclaration;
- Unions are a variation on structs.
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:52 2025