Struct autocxx_parser::TypeConfig [−][src]
Central registry of all information known about types. At present this is very minimal; in future we should roll known_types.rs into this and possibly other things as well.
Implementations
impl TypeConfig[src]
pub fn new() -> Self[src]
pub fn get_pod_requests(&self) -> &[String][src]
pub fn allowlist(&self) -> impl Iterator<Item = &String>[src]
pub fn allowlist_is_empty(&self) -> bool[src]
pub fn is_on_allowlist(&self, cpp_name: &str) -> bool[src]
Whether this type is on the allowlist specified by the user.
A note on the allowlist handling in general. It’s used in two places:
- As directives to bindgen
- After bindgen has generated code, to filter the APIs which we pass to cxx. This second pass may seem redundant. But sometimes bindgen generates unnecessary stuff.
pub fn is_on_blocklist(&self, cpp_name: &str) -> bool[src]
pub fn get_blocklist(&self) -> impl Iterator<Item = &String>[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeConfig
impl Send for TypeConfig
impl Sync for TypeConfig
impl Unpin for TypeConfig
impl UnwindSafe for TypeConfig
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>,