inochi2d ~main (2026-08-20T13:21:03.36605)
Dub
Repo
DataNode.tryCoerce
inp
format
node
DataNode
Coerces the value of the DataNode to the given type, if possible.
struct
DataNode
@
nogc
nothrow pure
T
tryCoerce
(
T
)
(
T
defaultValue
=
T.init
)
Meta
Source
See Implementation
inp
format
node
DataNode
constructors
this
destructors
~this
functions
isType
opBinaryRight
opEquals
opIndex
opIndexAssign
opOpAssign
remove
toString
tryCoerce
properties
array
blob
boolean
isArray
isBlob
isNull
isNumber
isObject
length
number
object
text
type
static functions
createArray
createObject
Coerces the value of the DataNode to the given type, if possible.