Enum gura::parser::GuraType[][src]

pub enum GuraType {
Show 17 variants Null, Indentation(usize), UselessLine, Pair(String, Box<GuraType>, usize), Comment, Import(String), Variable, ObjectWithWs(IndexMap<String, Box<GuraType>>, usize), Object(IndexMap<String, Box<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

Indentation (intended to be used internally).

Tuple Fields of Indentation

0: usize
UselessLine

An empty line (intended to be used internally).

Pair

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

Tuple Fields of Pair

0: String1: Box<GuraType>2: usize
Comment

Comment (intended to be used internally).

Import

Importing sentence (intended to be used internally).

Tuple Fields of Import

0: String
Variable

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

ObjectWithWs

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

Tuple Fields of ObjectWithWs

0: IndexMap<String, Box<GuraType>>1: usize
Object

Object with its key/value pairs.

Tuple Fields of Object

0: IndexMap<String, Box<GuraType>>
Bool

Boolean values.

Tuple Fields of Bool

0: bool
String

String values.

Tuple Fields of String

0: String
Integer

Integer values.

Tuple Fields of Integer

0: isize
BigInteger

Big integer values.

Tuple Fields of BigInteger

0: i128
Float

Float values.

Tuple Fields of Float

0: f64
Array

List of Gura values.

Tuple Fields of Array

0: Vec<GuraType>
WsOrNewLine

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

BreakParent

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

Implementations

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.