pub trait StaticStackValue: StackValue {
type DynRef<'a>;
// Required methods
fn known_ty() -> StackValueType;
fn from_dyn(value: Rc<dyn StackValue>) -> VmResult<Rc<Self>>;
fn from_dyn_ref(value: &dyn StackValue) -> VmResult<Self::DynRef<'_>>;
}
Expand description
Static-dispatch type extension for StackValue
.
Required Associated Types§
Required Methods§
fn known_ty() -> StackValueType
fn from_dyn(value: Rc<dyn StackValue>) -> VmResult<Rc<Self>>
fn from_dyn_ref(value: &dyn StackValue) -> VmResult<Self::DynRef<'_>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.