pub trait CustomValue {
// Provided methods
fn as_str(&self) -> Option<&str> { ... }
fn as_number(&self) -> Option<Number> { ... }
fn as_any(&self) -> Option<&dyn Any> { ... }
fn as_date_time(&self) -> Option<DateTime<'_>> { ... }
fn as_measure(&self) -> Option<Measure<'_>> { ... }
}Expand description
An application’s own argument type: what it converts to.
Provided Methods§
Sourcefn as_date_time(&self) -> Option<DateTime<'_>>
fn as_date_time(&self) -> Option<DateTime<'_>>
Its date/time value (date/time operands, datetime.md).
Sourcefn as_measure(&self) -> Option<Measure<'_>>
fn as_measure(&self) -> Option<Measure<'_>>
Its number with a currency or a unit (:currency and :unit
operands, number.md; a numeric operand for the other numeric
functions).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".