Enum dmntk_feel::values::Value[][src]

pub enum Value {
Show variants Boolean(bool), BuiltInFunction(Bif), BuiltInType(FeelType), CommaList(Values), Context(FeelContext), ContextEntry(NameBox<Value>), ContextEntryKey(Name), ContextEntryName(Name), Date(FeelDate), DateTime(FeelDateTime), DaysAndTimeDuration(FeelDaysAndTimeDuration), FormalParameter(NameFeelType), FormalParameters(Vec<(Name, FeelType)>), FunctionBody(FunctionBody), FunctionDefinition(Vec<(Name, FeelType)>, FunctionBody), IntervalEnd(Box<Value>, bool), IntervalStart(Box<Value>, bool), Irrelevant, List(Values), NamedParameter(Box<Value>, Box<Value>), NamedParameters(BTreeMap<Name, Value>), NegatedCommaList(Vec<Value>), Null(Option<String>), Number(f64), ParameterName(Name), PositionalParameters(Vec<Value>), Range(Box<Value>, boolBox<Value>, bool), String(String), Time(FeelTime), Type(FeelType), UnaryGreater(Box<Value>), UnaryGreaterOrEqual(Box<Value>), UnaryLess(Box<Value>), UnaryLessOrEqual(Box<Value>), YearsAndMonthsDuration(FeelYearsAndMonthsDuration),
}
Expand description

???

Variants

Boolean(bool)

Value representing FEEL boolean type.

BuiltInFunction(Bif)

Value for storing built-in function definition.

BuiltInType(FeelType)

Value for storing built-in type definition.

CommaList(Values)

Value for storing a collection of values representing a comma-separated list of values.

Context(FeelContext)

Value representing a context.

ContextEntry(NameBox<Value>)

Value representing a context entry.

ContextEntryKey(Name)

Value representing a key of the context entry.

ContextEntryName(Name)

Value representing a name of the context entry in context type definition.

Date(FeelDate)

Value for storing dates as FeelDate.

DateTime(FeelDateTime)

Value for storing date and time as FeelDateTime.

DaysAndTimeDuration(FeelDaysAndTimeDuration)

Value for days and time durations.

FormalParameter(NameFeelType)

Value representing function’s formal parameter with name and type.

FormalParameters(Vec<(Name, FeelType)>)

List of formal parameters.

FunctionBody(FunctionBody)

Definition of the function body.

FunctionDefinition(Vec<(Name, FeelType)>, FunctionBody)

Value representing the function definition. This value holds the list of function’s formal parameters, and the function’s body.

IntervalEnd(Box<Value>, bool)

Value representing interval end.

IntervalStart(Box<Value>, bool)

Value representing interval start.

Irrelevant

Irrelevant value…

List(Values)

Value representing a list of values.

NamedParameter(Box<Value>, Box<Value>)

Named parameter.

NamedParameters(BTreeMap<Name, Value>)

Value representing a collection of name parameters.

NegatedCommaList(Vec<Value>)

NegatedCommaList value…

Null(Option<String>)

Null value with optional tracing message.

Number(f64)

Numeric value

ParameterName(Name)

Name of the parameter.

PositionalParameters(Vec<Value>)

List of positional parameters.

Range(Box<Value>, boolBox<Value>, bool)

Value representing a range.

String(String)

String value…

Time(FeelTime)

Value for storing time as FeelTime.

Type(FeelType)

Value representing only the FEEL type of value.

UnaryGreater(Box<Value>)

UnaryGreater value…

UnaryGreaterOrEqual(Box<Value>)

UnaryGreaterOrEqual value…

UnaryLess(Box<Value>)

UnaryLess value…

UnaryLessOrEqual(Box<Value>)

UnaryLessOrEqual value…

YearsAndMonthsDuration(FeelYearsAndMonthsDuration)

Value for storing years and months duration.

Implementations

Returns true when the value is of type Value::Null.

Returns true when the value is of type Value::Boolean and is equal to true.

Returns true when the value is of type Value::Number.

Returns the type of this Value.

Applies coercion rules to this value and returns converted value or null.

Tries to convert xsd:integer string into valid Value representing a number.

Tries to convert xsd:decimal string into valid Value representing a number.

Tries to convert xsd:double string into valid Value representing a number.

Tries to convert xsd:boolean string into valid Value representing a boolean.

Tries to convert xsd:date string into valid Value representing a date. FEEL date format is fully conformant with xsd:date.

Tries to convert xsd:time string into valid Value representing a time. FEEL time format is fully conformant with xsd:time.

Tries to convert xsd:dateTime string into valid Value representing a date and time. FEEL date and time format is fully conformant with xsd:dateTime.

Tries to convert xsd:duration string into valid Value representing a date and time. FEEL durations are conformant with xsd:duration but spit into two ranges.

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 Value to its FEEL representation.

Converts this FeelContext to its Value representation.

Converts a Value to its JSON representation.

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

This method tests for !=.

Converts a Value to its TEXT representation.

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.

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.

Tries to convert Value to ValueDto.

The type returned in the event of a conversion error.

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.

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.

Tries to convert a Value to its FeelContext representation.

The type returned in the event of a conversion error.

Tries to convert Value to OutputNodeDto.

The type returned in the event of a conversion error.

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.