pub trait FromWindowsObject<'a, Driver>: Sized{
// Required method
fn from_object(
object: WindowsObject<'a, Driver>,
) -> Result<Option<Self>, VmiError>;
}Expand description
Trait for types that can be converted from a WindowsObject.
Required Methods§
Sourcefn from_object(
object: WindowsObject<'a, Driver>,
) -> Result<Option<Self>, VmiError>
fn from_object( object: WindowsObject<'a, Driver>, ) -> Result<Option<Self>, VmiError>
Attempts to convert a WindowsObject into a specific object type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".