pub trait ScalarFnVTableExt: VTable {
// Provided methods
fn new_fn(self, options: Self::Options) -> ScalarFn { ... }
fn new_fn_static(&'static self, options: Self::Options) -> ScalarFn { ... }
}Provided Methods§
Sourcefn new_fn(self, options: Self::Options) -> ScalarFn
fn new_fn(self, options: Self::Options) -> ScalarFn
Creates a new ScalarFn instance with the given options.
Sourcefn new_fn_static(&'static self, options: Self::Options) -> ScalarFn
fn new_fn_static(&'static self, options: Self::Options) -> ScalarFn
Creates a new ScalarFn instance with the given options from a ’static vtable.
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.