pub struct Bindings { /* private fields */ }
Expand description
Generated Rust bindings.
Implementations§
source§impl Bindings
impl Bindings
sourcepub fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
pub fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
Write these bindings as source text to a file.
sourcepub fn write<'a>(&self, writer: Box<dyn Write + 'a>) -> Result<()>
pub fn write<'a>(&self, writer: Box<dyn Write + 'a>) -> Result<()>
Write these bindings as source text to the given Write
able.
sourcepub fn emit_warnings(&self)
pub fn emit_warnings(&self)
Emit all the warning messages raised while generating the bindings in a build script.
If you are using bindgen
outside of a build script you should use Bindings::warnings
and handle the messages accordingly instead.