automapper ~master (2019-01-24T20:09:57Z)
Dub
Repo
onlyOneExists
automapper
meta
Check if a type matching a criteria exists and only one
package
template
onlyOneExists (
alias
Criteria
T
...
) {
alias
Found
=
Filter
!(
Criteria
,
T
)
;
package
static if
(
Found.length == 1
)
enum
onlyOneExists
;
package
static if
(!(
Found.length == 1
))
enum
onlyOneExists
;
}
Members
Aliases
Found
alias
Found
=
Filter
!(
Criteria
,
T
)
Undocumented in source.
Manifest constants
onlyOneExists
enum
onlyOneExists
;
Undocumented in source.
onlyOneExists
enum
onlyOneExists
;
Undocumented in source.
Meta
Source
See Implementation
automapper
meta
functions
GetMember
splitOnCase
templates
Alias
ClassMembers
FlattenedMembers
MemberType
findOrDefault
hasNestedMember
hasSpecifiedCallable
isClass
isClassOrStruct
isPublicMember
isSpecifiedCallable
onlyOneExists
Check if a type matching a criteria exists and only one