pub struct CEmitter;Expand description
C schema-package emitter with schema-selected projection evidence.
Implementations§
Source§impl CEmitter
impl CEmitter
Sourcepub fn generator_handlers(&self) -> Vec<ProjectionHandler>
pub fn generator_handlers(&self) -> Vec<ProjectionHandler>
Return its unordered projection-handler evidence.
Sourcepub fn generator_handlers_for(
&self,
schema: &ResolvedSchema,
) -> Vec<ProjectionHandler>
pub fn generator_handlers_for( &self, schema: &ResolvedSchema, ) -> Vec<ProjectionHandler>
Return projection-handler evidence selected for the resolved schema features.
Sourcepub fn code_resources(&self) -> Result<Vec<CodeResourceDigest>, Diagnostic>
pub fn code_resources(&self) -> Result<Vec<CodeResourceDigest>, Diagnostic>
Hash every fixed byte resource consumed by emission.
Sourcepub fn code_resources_for(
&self,
_schema: &ResolvedSchema,
) -> Result<Vec<CodeResourceDigest>, Diagnostic>
pub fn code_resources_for( &self, _schema: &ResolvedSchema, ) -> Result<Vec<CodeResourceDigest>, Diagnostic>
Hash every fixed byte resource selected for the resolved schema features.
Sourcepub fn emit(
&self,
projection: &RuntimeProjection,
authority: &VerifiedSchemaAuthority,
) -> Result<GeneratedPackage, Diagnostic>
pub fn emit( &self, projection: &RuntimeProjection, authority: &VerifiedSchemaAuthority, ) -> Result<GeneratedPackage, Diagnostic>
Emit one deterministic C source package bound to exact verified authority.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CEmitter
impl RefUnwindSafe for CEmitter
impl Send for CEmitter
impl Sync for CEmitter
impl Unpin for CEmitter
impl UnsafeUnpin for CEmitter
impl UnwindSafe for CEmitter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more