pub trait RuntimeValue: Sized {
// Required methods
fn is_accepted_by(&self, expected: &Type) -> bool;
fn constrain_to(&self, expected: &Type) -> Option<Self>;
fn runtime_type(&self) -> Option<Type>;
}Required Methods§
fn is_accepted_by(&self, expected: &Type) -> bool
fn constrain_to(&self, expected: &Type) -> Option<Self>
fn runtime_type(&self) -> Option<Type>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".