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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bindings
impl !RefUnwindSafe for Bindings
impl !Send for Bindings
impl !Sync for Bindings
impl Unpin for Bindings
impl !UnwindSafe for Bindings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more