pub struct HelperCodegenBridge { /* private fields */ }Expand description
Validated standalone-helper data needed by final browser codegen.
This is deliberately separate from HelperDescriptor. The descriptor
commits semantic identity and graph contracts; this bridge retains the
concrete signature and relocation-resolved body needed to emit code. The
source hash is retained for descriptor authentication; the resolved-body
hash is derived from the owned body so it can never become stale.
Implementations§
Source§impl HelperCodegenBridge
impl HelperCodegenBridge
Sourcepub fn signature(&self) -> &HelperCodegenSignature
pub fn signature(&self) -> &HelperCodegenSignature
Exact parameter/result contract authenticated at construction.
Sourcepub fn source_ir_hash(&self) -> SemanticHash
pub fn source_ir_hash(&self) -> SemanticHash
Hash of the producer’s canonical pre-link Client IR.
Sourcepub fn body(&self) -> &HelperCodegenBody
pub fn body(&self) -> &HelperCodegenBody
Relocation-resolved, origin-free Client IR body.
Sourcepub fn body_ir_hash(&self) -> SemanticHash
pub fn body_ir_hash(&self) -> SemanticHash
Hash of the relocation-resolved body.
This is computed from the body on every observation so callers cannot accidentally persist a hash that no longer describes the emitted IR.
Trait Implementations§
Source§impl CanonicalEncode for HelperCodegenBridge
impl CanonicalEncode for HelperCodegenBridge
Source§fn encode_canonical(&self, encoder: &mut CanonicalEncoder)
fn encode_canonical(&self, encoder: &mut CanonicalEncoder)
Source§impl Clone for HelperCodegenBridge
impl Clone for HelperCodegenBridge
Source§fn clone(&self) -> HelperCodegenBridge
fn clone(&self) -> HelperCodegenBridge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HelperCodegenBridge
impl Debug for HelperCodegenBridge
impl Eq for HelperCodegenBridge
Source§impl PartialEq for HelperCodegenBridge
impl PartialEq for HelperCodegenBridge
impl StructuralPartialEq for HelperCodegenBridge
Auto Trait Implementations§
impl Forget for HelperCodegenBridge
impl Freeze for HelperCodegenBridge
impl Move for HelperCodegenBridge
impl RefUnwindSafe for HelperCodegenBridge
impl Send for HelperCodegenBridge
impl Sync for HelperCodegenBridge
impl Unpin for HelperCodegenBridge
impl UnsafeUnpin for HelperCodegenBridge
impl UnwindSafe for HelperCodegenBridge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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