Skip to main content

DeferredValue

Trait DeferredValue 

Source
pub trait DeferredValue: Clone {
    // Required methods
    fn eval_deferred(
        deferred: &Deferred<Self>,
        node_id: NodeId,
        property_path: &str,
        ctx: &ExpressionContext<'_>,
    ) -> Result<Self, LumenError>
       where Self: Sized;
    fn to_property_value(value: &Self) -> PropertyValue;
    fn from_property_value(value: PropertyValue) -> Option<Self>
       where Self: Sized;
    fn property_kind_name() -> &'static str;
}

Required Methods§

Source

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>
where Self: Sized,

Source

fn to_property_value(value: &Self) -> PropertyValue

Source

fn from_property_value(value: PropertyValue) -> Option<Self>
where Self: Sized,

Source

fn property_kind_name() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DeferredValue for (f64, f64)

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for String

Source§

fn eval_deferred( deferred: &Deferred<Self>, _node_id: NodeId, _property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for [f32; 2]

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for [u8; 4]

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for bool

Source§

fn eval_deferred( deferred: &Deferred<Self>, _node_id: NodeId, _property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for f32

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for f64

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for i64

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for u8

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Source§

impl DeferredValue for u32

Source§

fn eval_deferred( deferred: &Deferred<Self>, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<Self, LumenError>

Source§

fn to_property_value(value: &Self) -> PropertyValue

Source§

fn from_property_value(value: PropertyValue) -> Option<Self>

Source§

fn property_kind_name() -> &'static str

Implementors§