schema-salad-d ~master (2021-11-30T07:56:22Z)
Home
Dub
Repo
Assign_
salad
meta
Undocumented in source.
template
Assign_
(string node, string field, T, bool typeDSL = false, idMap idMap_ = idMap.init)
template
Assign_
(string node, string field, T, bool typeDSL = false, idMap idMap_ = idMap.init)
template
Assign_ (
string
node
string
field
T
bool
typeDSL
= false
idMap
idMap_
=
idMap
.
init
)
if
(
isSumType
!
T
) {
import
std
.
format
:
format
;
;
static if
(
isOptional!T && T.Types.length == 2
)
enum
Assign_
;
static if
(!(
isOptional!T && T.Types.length == 2
))
static if
(
isEither!T && T.Types.length == 1
)
enum
Assign_
;
import
std
.
traits
:
isSomeString
;
;
import
std
.
meta
:
Filter
;
;
alias
Types
=
T
.
Types
[
1
..$]
;
alias
Types
=
T
.
Types
;
static if
(!(
isOptional!T && T.Types.length == 2
))
static if
(!(
isEither!T && T.Types.length == 1
))
static if
(
typeDSL && Filter!(isSomeString, Types).length > 0
)
enum
Pre
;
static if
(!(
isOptional!T && T.Types.length == 2
))
static if
(!(
isEither!T && T.Types.length == 1
))
static if
(!(
typeDSL && Filter!(isSomeString, Types).length > 0
))
enum
Pre
;
static if
(!(
isOptional!T && T.Types.length == 2
))
static if
(!(
isEither!T && T.Types.length == 1
))
enum
Assign_
;
}
Members
Aliases
Types
alias
Types
=
T
.
Types
[
1
..$]
Undocumented in source.
Types
alias
Types
=
T
.
Types
Undocumented in source.
Manifest constants
Assign_
enum
Assign_
;
Undocumented in source.
Assign_
enum
Assign_
;
Undocumented in source.
Assign_
enum
Assign_
;
Undocumented in source.
Pre
enum
Pre
;
Undocumented in source.
Pre
enum
Pre
;
Undocumented in source.
Meta
Source
See Implementation
salad
meta
enums
hasIdentifier
isConstantMember
functions
ctorStr
stripLeftAll
mixin templates
genCtor
genIdentifier
genToString
structs
documentRoot
id
idMap
typeDSL
templates
ArrayDispatchStatement
Assign
Assign_
DispatchFun
DocumentRootType
EnumDispatchStatement
IdentifierType
RecordDispatchStatement