Enum dmntk_feel::FeelType[][src]

pub enum FeelType {
Show variants Any, Boolean, Context(BTreeMap<Name, FeelType>), Date, DateTime, DaysAndTimeDuration, Function(Vec<FeelType>, Box<FeelType>), List(Box<FeelType>), Null, Number, Range(Box<FeelType>), String, Time, YearsAndMonthsDuration,
}

Variants

Any

Type representing any valid FEEL type.

Boolean

Type representing a boolean value.

Type representing context values.

Date

Type representing date value.

DateTime

Type representing date and time value.

DaysAndTimeDuration

Type representing days and time duration value.

Function(Vec<FeelType>, Box<FeelType>)

Type representing function values.

List(Box<FeelType>)

Type representing list values.

Null

Type representing null value.

Number

Type representing number value.

Range(Box<FeelType>)

Type representing range values.

String

Type representing string value.

Time

Type representing time value.

YearsAndMonthsDuration

Type representing years and months duration value.

Implementations

Returns a new value cloned from provided value, and retrieved with type checking.

Returns true when this type is a simple FEEL type.

Creates a list type with specified items’ type.

Creates a range type with specified elements’ type.

Creates a context type with specified entries’ types.

Creates a function type with specified parameter types and return type.

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

Converts a string to built-in type.

The associated error which can be returned from parsing.

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

This method tests for !=.

Converts FEEL artifact into its TEXT representation.

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

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.