Struct swift_bridge_ir::CodegenConfig
source · pub struct CodegenConfig {
pub crate_feature_lookup: Box<dyn Fn(&str) -> bool>,
}
Expand description
Configuration for how we will generate our Swift code.
Fields§
§crate_feature_lookup: Box<dyn Fn(&str) -> bool>
Look up whether or not a feature is enabled for the crate that holds the bridge module.
This helps us decide whether or not to generate code for parts of the module
that are annotated with #[cfg(feature = "some-feature")]
Auto Trait Implementations§
impl Freeze for CodegenConfig
impl !RefUnwindSafe for CodegenConfig
impl !Send for CodegenConfig
impl !Sync for CodegenConfig
impl Unpin for CodegenConfig
impl !UnwindSafe for CodegenConfig
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