Struct autocxx_parser::IncludeCppConfig[][src]

pub struct IncludeCppConfig {
    pub inclusions: Vec<String>,
    pub unsafe_policy: UnsafePolicy,
    pub parse_only: bool,
    pub exclude_impls: bool,
    // some fields omitted
}

Fields

inclusions: Vec<String>unsafe_policy: UnsafePolicyparse_only: boolexclude_impls: bool

Implementations

impl IncludeCppConfig[src]

pub fn get_pod_requests(&self) -> &[String][src]

pub fn get_mod_name(&self) -> Ident[src]

pub fn exclude_utilities(&self) -> bool[src]

Whether to avoid generating the standard helpful utility functions which we normally include in every mod.

pub fn must_generate_list(&self) -> Box<dyn Iterator<Item = String>>[src]

Items which the user has explicitly asked us to generate; we should raise an error if we weren’t able to do so.

pub fn bindgen_allowlist(&self) -> Option<Box<dyn Iterator<Item = String>>>[src]

The allowlist of items to be passed into bindgen, if any.

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:

  1. As directives to bindgen
  2. 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]

pub fn get_makestring_name(&self) -> String[src]

Trait Implementations

impl Debug for IncludeCppConfig[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Hash for IncludeCppConfig[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl Parse for IncludeCppConfig[src]

fn parse(input: ParseStream<'_>) -> ParseResult<Self>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.