Document.opIndex

  1. const(Element) opIndex(string key)
  2. const(Element) opIndex(Index index)
    struct Document
    const
    const(Element)
    opIndex
    (
    Index
    )
    (
    in Index index
    )
    if (
    isIntegral!Index
    )

Return Value

Type: const(Element)

The element with the index

Throws

If the element with the key is not found then and HiBONException is thrown Or of the key is not an index a std.conv.ConvException is thrown