pub enum Item<Op, Val = Value> where
    Op: Debug,
    Val: Debug
{ Operator(Op), Value(Val), }
Expand description

An Item is each one of the entities that conform a Script.

In other words, a Script is no more than an array of Items in the likes of [Item<Op, Val>].

Ìtem does not implement any methods other than implementations of some traits from the core crate.

Variants

Operator(Op)

An operator code, either a variant of an user-defined enum containing different operator identifiers, or any of the ones found in the op_systems module.

Value(Val)

A value, either a variant of an user-defined enum representing a type system, or an instance of any of the variants of Value, i.e. Boolean, Float, Integer or String.

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

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

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.