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§
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".