Struct over::obj::Obj [] [src]

pub struct Obj { /* fields omitted */ }

Obj struct.

Methods

impl Obj
[src]

[src]

Returns a new empty Obj.

[src]

Returns a new Obj loaded from a file.

[src]

Writes this Obj to given file in .over representation.

Notes

Note that the fields of the Obj will be output in an unpredictable order. Also note that shorthand in the original file, including variables and file includes, is not preserved when parsing the file, and will not appear when writing to another file.

[src]

[src]

Returns the map of values in this Arr. Parent field/value pairs are excluded.

[src]

Iterates over each (String, Value) pair in self, applying f.

[src]

Returns the number of fields for this Obj (children/parents not included).

[src]

Returns whether this Obj is empty.

[src]

Returns whether self and other point to the same data.

[src]

Returns true iff the Obj contains field.

[src]

Removes a field and its associated value from the Obj.

[src]

Clears all fields from the Obj.

[src]

Gets the Value associated with field.

[src]

Gets the Value associated with field and the Obj where it was found (either self or one of its parents).

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Sets the Value for field.

[src]

Returns whether this Obj has a parent.

[src]

Returns the parent for this Obj.

[src]

Sets the parent for this Obj. Circular references in parents are not allowed.

Trait Implementations

impl Clone for Obj
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Obj
[src]

[src]

Formats the value using the given formatter.

impl Default for Obj
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for Obj
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Obj
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl PartialEq for Obj
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<Value> for Obj
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.