pub struct CConsumerContext<'a> {
pub config: &'a ResolvedCrateConfig,
pub header: String,
pub lib_name: String,
pub prefix: String,
}Expand description
Context capturing the shared FFI consumer inputs across all language backends.
Fields§
§config: &'a ResolvedCrateConfigReference to the resolved crate configuration.
header: StringC header filename (e.g., “html_to_markdown.h”).
lib_name: StringC library name used for linking (e.g., “html_to_markdown”).
prefix: StringC symbol prefix for FFI functions (e.g., “htm”).
Implementations§
Source§impl<'a> CConsumerContext<'a>
impl<'a> CConsumerContext<'a>
Sourcepub fn from_config(config: &'a ResolvedCrateConfig) -> Self
pub fn from_config(config: &'a ResolvedCrateConfig) -> Self
Create a new CConsumerContext from the resolved crate configuration.
Auto Trait Implementations§
impl<'a> Forget for CConsumerContext<'a>
impl<'a> Freeze for CConsumerContext<'a>
impl<'a> Move for CConsumerContext<'a>
impl<'a> RefUnwindSafe for CConsumerContext<'a>
impl<'a> Send for CConsumerContext<'a>
impl<'a> Sync for CConsumerContext<'a>where
RawVecInner: Sync,
RawTable<(String, String)>: Sync,
RawTable<(String, Value)>: Sync,
RawTable<(String, CapsuleTypeConfig)>: Sync,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
RawTable<(String, NodeCapsuleTypeConfig)>: Sync,
RawTable<(String, Vec<String>)>: Sync,
RawTable<(String, PathBuf)>: Sync,
RawTable<(String, LintConfig)>: Sync,
RawTable<(String, TestConfig)>: Sync,
RawTable<(String, SetupConfig)>: Sync,
RawTable<(String, UpdateConfig)>: Sync,
RawTable<(String, CleanConfig)>: Sync,
RawTable<(String, BuildCommandConfig)>: Sync,
RawTable<(String, GenerateConfig)>: Sync,
RawTable<(String, FormatConfig)>: Sync,
RawTable<(String, ClientConstructorConfig)>: Sync,
RawTable<(String, PublishLanguageConfig)>: Sync,
RawTable<(String, ())>: Sync,
RawTable<(String, CallOverride)>: Sync,
RawTable<(String, CallConfig)>: Sync,
RawTable<(String, PackageRef)>: Sync,
RawTable<(String, ManifestExtras)>: Sync,
RawTable<(String, ScaffoldCargoEnvValue)>: Sync,
RawTable<(String, Value)>: Sync,
RawTable<(String, Vec<PathBuf>)>: Sync,
impl<'a> Unpin for CConsumerContext<'a>
impl<'a> UnsafeUnpin for CConsumerContext<'a>where
&'a ResolvedCrateConfig: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl<'a> UnwindSafe for CConsumerContext<'a>
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