Document.Element

HiBON Element representation

Members

Enums

ErrorCode
enum ErrorCode

Element error codes

Functions

opEquals
bool opEquals(T rhs)
valid
ErrorCode valid(Reserved reserved)

Check if the element is valid

Properties

as
T as [@property setter]

Tries to convert the value to the type T.

by
auto by [@property getter]
get
T get [@property getter]
index
uint index [@property getter]
isEod
bool isEod [@property getter]
isIndex
bool isIndex [@property getter]
isThat
bool isThat [@property getter]

Check if the type match That template. That template must have one parameter T as follows

isType
bool isType [@property getter]
key
string key [@property getter]
keyLen
uint keyLen [@property getter]
opEquals
Element opEquals [@property setter]

Compare two elements

opIndex
string opIndex [@property setter]

Assumes that the element is a document

size
size_t size [@property getter]
type
Type type [@property getter]
value
const(Value*) value [@property getter]
valuePos
uint valuePos [@property getter]