pub enum GuraType {
Show 17 variants Null, Indentation(usize), UselessLine, Pair(StringBox<GuraType>, usize), Comment, Import(String), Variable, ObjectWithWs(IndexMap<String, GuraType>, usize), Object(IndexMap<String, GuraType>), Bool(bool), String(String), Integer(isize), BigInteger(i128), Float(f64), Array(Vec<GuraType>), WsOrNewLine, BreakParent,
}
Expand description

Data types to be returned by match expression methods.

Variants

Null

Null values.

Indentation(usize)

Indentation (intended to be used internally).

UselessLine

An empty line (intended to be used internally).

Pair(StringBox<GuraType>, usize)

Pair of key/value. (intended to be used internally. Users normally uses Object to map key/values).

Comment

Comment (intended to be used internally).

Import(String)

Importing sentence (intended to be used internally).

Variable

Indicates matching with a variable definition (intended to be used internally).

ObjectWithWs(IndexMap<String, GuraType>, usize)

Object with information about indentation (intended to be used internally).

Object(IndexMap<String, GuraType>)

Object with its key/value pairs.

Bool(bool)

Boolean values.

String(String)

String values.

Integer(isize)

Integer values.

BigInteger(i128)

Big integer values.

Float(f64)

Float values.

Array(Vec<GuraType>)

List of Gura values.

WsOrNewLine

Spaces or new line characters (intended to be used internally).

BreakParent

Indicates the ending of an object (intended to be used internally).

Implementations

Gets an iterator over the references to the elements of an object.

Returns an error if the Gura type is not an object

Gets an iterator over the elements of an object.

Returns an error if the Gura type is not an object

Checks if a specific key is defined in the Gura Object

If the Gura type is not an object it returns false

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Implements indexing by &str to easily access object members:

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

Implements Eq with primitive types

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.