[][src]Enum scriptful::core::item::Item

pub enum Item<Op> where
    Op: Debug + Eq
{ Operator(Op), Value(Value), }

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

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

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

Variants

Operator(Op)

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

Value(Value)

An instance of any of the variants of Value, i.e. Boolean, Float, Integer or String.

Trait Implementations

impl<Op: Debug> Debug for Item<Op> where
    Op: Debug + Eq
[src]

impl<Op> PartialEq<Item<Op>> for Item<Op> where
    Op: Debug + Eq
[src]

Auto Trait Implementations

impl<Op> Send for Item<Op> where
    Op: Send

impl<Op> Sync for Item<Op> where
    Op: Sync

impl<Op> Unpin for Item<Op> where
    Op: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.