element

fun TomlArrayBuilder.element(element: TomlElement, vararg elementAnnotations: Annotation)(source)

Adds element to this array and annotates it with elementAnnotations.


fun TomlTableBuilder.element(key: Any?, element: TomlElement, vararg elementAnnotations: Annotation)(source)

Associates element with primitive key and annotates element with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.