[−][src]Struct bindgen::CargoCallbacks
A ParseCallbacks implementation that will act on file includes by echoing a rerun-if-changed line
When running in side a build.rs
script, this can be used to make cargo invalidate the
generated bindings whenever any of the files included from the header change:
use bindgen::builder; let bindings = builder() .header("path/to/input/header") .parse_callbacks(Box::new(bindgen::CargoCallbacks)) .generate();
Trait Implementations
impl Debug for CargoCallbacks
[src]
impl ParseCallbacks for CargoCallbacks
[src]
pub fn include_file(&self, filename: &str)
[src]
pub fn will_parse_macro(&self, _name: &str) -> MacroParsingBehavior
[src]
pub fn int_macro(&self, _name: &str, _value: i64) -> Option<IntKind>
[src]
pub fn str_macro(&self, _name: &str, _value: &[u8])
[src]
pub fn func_macro(&self, _name: &str, _value: &[&[u8]])
[src]
pub fn enum_variant_behavior(
&self,
_enum_name: Option<&str>,
_original_variant_name: &str,
_variant_value: EnumVariantValue
) -> Option<EnumVariantCustomBehavior>
[src]
&self,
_enum_name: Option<&str>,
_original_variant_name: &str,
_variant_value: EnumVariantValue
) -> Option<EnumVariantCustomBehavior>
pub fn enum_variant_name(
&self,
_enum_name: Option<&str>,
_original_variant_name: &str,
_variant_value: EnumVariantValue
) -> Option<String>
[src]
&self,
_enum_name: Option<&str>,
_original_variant_name: &str,
_variant_value: EnumVariantValue
) -> Option<String>
pub fn item_name(&self, _original_item_name: &str) -> Option<String>
[src]
Auto Trait Implementations
impl RefUnwindSafe for CargoCallbacks
impl Send for CargoCallbacks
impl Sync for CargoCallbacks
impl Unpin for CargoCallbacks
impl UnwindSafe for CargoCallbacks
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,