pub trait InstanceOf {
// Required method
fn instance_of(reference: &Reference) -> bool;
}
Expand description
A trait to check whenever a given Reference is of a certain type.
Required Methods§
Sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
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.