Trait FromIlInstance
pub trait FromIlInstance: Sized + ClassIdentity {
// Required method
fn from_il_instance(instance: IlInstance) -> Self;
// Provided methods
fn instantiate() -> Option<Self> { ... }
fn instantiate_with_class(class: Class) -> Option<Self> { ... }
}Required Methods§
fn from_il_instance(instance: IlInstance) -> Self
Provided Methods§
fn instantiate() -> Option<Self>
fn instantiate_with_class(class: Class) -> Option<Self>
fn instantiate_with_class(class: Class) -> Option<Self>
Caller swears class is a subtype of Self or layout compatible
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.