Skip to main content

ValueCast

Trait ValueCast 

Source
pub trait ValueCast<T: CastTarget>: ValueDomain {
    // Required method
    fn cast<'a>(
        label: &'static str,
        value: Self::Value<'a>,
        target: &T,
    ) -> QueryResult<Self::Value<'a>>;
}

Required Methods§

Source

fn cast<'a>( label: &'static str, value: Self::Value<'a>, target: &T, ) -> QueryResult<Self::Value<'a>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§