Skip to main content

RuntimeValue

Trait RuntimeValue 

Source
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§

Source

fn is_accepted_by(&self, expected: &Type) -> bool

Source

fn constrain_to(&self, expected: &Type) -> Option<Self>

Source

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

Implementors§