Enum dmntk_feel::values::Value [−][src]
pub enum Value {}Show variants
Boolean(bool), BuiltInFunction(Bif), BuiltInType(FeelType), CommaList(Values), Context(FeelContext), ContextEntry(Name, Box<Value>), ContextEntryKey(Name), ContextEntryName(Name), Date(FeelDate), DateTime(FeelDateTime), DaysAndTimeDuration(FeelDaysAndTimeDuration), FormalParameter(Name, FeelType), 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>, bool, Box<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.
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.
Value representing function’s formal parameter with name and type.
List of formal parameters.
FunctionBody(FunctionBody)
Definition of the function body.
Value representing the function definition. This value holds the list of function’s formal parameters, and the function’s body.
Value representing interval end.
Value representing interval start.
Irrelevant value…
List(Values)
Value representing a list of values.
Named parameter.
Value representing a collection of name parameters.
NegatedCommaList value…
Null value with optional tracing message.
Number(f64)
Numeric value
ParameterName(Name)
Name of the parameter.
List of positional parameters.
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 value…
UnaryGreaterOrEqual value…
UnaryLess 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.
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
Converts this FeelContext to its Value representation.
type Error = DmntkError
type Error = DmntkError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DmntkError
type Error = DmntkError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DmntkError
type Error = DmntkError
The type returned in the event of a conversion error.
type Error = DmntkError
type Error = DmntkError
The type returned in the event of a conversion error.
Tries to convert a Value to its FeelContext representation.
type Error = DmntkError
type Error = DmntkError
The type returned in the event of a conversion error.
type Error = DmntkError
type Error = DmntkError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more