Trait wdk_build::BuilderExt
source · pub trait BuilderExt {
// Required method
fn wdk_default(
c_header_files: Vec<&str>,
config: Config
) -> Result<Builder, ConfigError>;
}
Expand description
An extension trait that provides a way to create a bindgen::Builder
configured for generating bindings to the wdk
Required Methods§
sourcefn wdk_default(
c_header_files: Vec<&str>,
config: Config
) -> Result<Builder, ConfigError>
fn wdk_default( c_header_files: Vec<&str>, config: Config ) -> Result<Builder, ConfigError>
Returns a bindgen::Builder
with the default configuration for
generation of bindings to the WDK
§Errors
Implementation may return wdk_build::ConfigError
if it fails to create
a builder
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl BuilderExt for Builder
impl BuilderExt for Builder
source§fn wdk_default(
c_header_files: Vec<&str>,
config: Config
) -> Result<Self, ConfigError>
fn wdk_default( c_header_files: Vec<&str>, config: Config ) -> Result<Self, ConfigError>
Returns a bindgen::Builder
with the default configuration for
generation of bindings to the WDK
§Errors
Will return wdk_build::ConfigError
if any of the resolved include or
library paths do not exist