Struct slr_config::ConfigElement [] [src]

pub struct ConfigElement { /* fields omitted */ }

A configuration element.

Methods

impl ConfigElement
[src]

Creates a new empty table.

Creates a new value.

Creates a new array.

Parses a source and returns a table. The source will be reset by this operation, and must not be used with any spans created from a previous parsing done with that source.

Parses a source and returns a table.

Updates the elements in this table with new values parsed from source. If an error occurs, the contents of this table are undefined. The source will be reset by this operation, and must not be used with any spans created from a previous lexing done with that source.

Updates the elements in this table with new values parsed from source. If an error occurs, the contents of this table are undefined.

Returns the kind of this element.

Returns the kind of this element.

Returns the span associated with this element.

If this is a table, returns a pointer to its contents.

If this is a table, returns a pointer to its contents.

If this is a value, returns a pointer to its contents.

If this is a value, returns a pointer to its contents.

If this is an array, returns a pointer to its contents.

If this is an array, returns a pointer to its contents.

Insert an element into a table or an array. Panics if self is a value. name is ignored if self is an array.

Outputs the string representation of this element into into a printer.

Trait Implementations

impl Clone for ConfigElement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for ConfigElement
[src]

Formats the value using the given formatter. Read more