Skip to main content

CConsumerContext

Struct CConsumerContext 

Source
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 ResolvedCrateConfig

Reference to the resolved crate configuration.

§header: String

C header filename (e.g., “html_to_markdown.h”).

§lib_name: String

C library name used for linking (e.g., “html_to_markdown”).

§prefix: String

C symbol prefix for FFI functions (e.g., “htm”).

Implementations§

Source§

impl<'a> CConsumerContext<'a>

Source

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>
where &'a ResolvedCrateConfig: Send, RawVecInner: Send,

§

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>
where &'a ResolvedCrateConfig: Unpin, *const u8 is !null: Unpin,

§

impl<'a> UnsafeUnpin for CConsumerContext<'a>

§

impl<'a> UnwindSafe for CConsumerContext<'a>
where &'a ResolvedCrateConfig: UnwindSafe, RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.