pub trait IDispatchExt {
// Required methods
fn call<S>(&self, name: S, args: Vec<VARIANT>) -> Result<VARIANT>
where S: AsRef<str>;
fn get<S>(&self, name: S) -> Result<VARIANT>
where S: AsRef<str>;
fn set<S>(&self, name: S, value: VARIANT) -> Result<VARIANT>
where S: AsRef<str>;
}
Expand description
Additional functions for working with an IDispatch
.
Required Methods§
Sourcefn call<S>(&self, name: S, args: Vec<VARIANT>) -> Result<VARIANT>
fn call<S>(&self, name: S, args: Vec<VARIANT>) -> Result<VARIANT>
Call a function on this IDispatch
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.