pub struct RawSourceBindingV2 { /* private fields */ }Expand description
V2 raw-source binding composed from immutable V1 facts and exact source timing.
Implementations§
Source§impl RawSourceBindingV2
impl RawSourceBindingV2
Sourcepub fn from_source(
facts: SourceFactsViewV1<'_>,
exact_source_timing: Option<&ExactSourceTimingV1>,
) -> Result<Self, PredictionContractError>
pub fn from_source( facts: SourceFactsViewV1<'_>, exact_source_timing: Option<&ExactSourceTimingV1>, ) -> Result<Self, PredictionContractError>
Project one same-load V1 source view and its attached exact timing sidecar.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable V2 raw-source contract identity.
Sourcepub const fn source_facts(&self) -> &RawSourceBindingV1
pub const fn source_facts(&self) -> &RawSourceBindingV1
Embedded immutable V1 raw-source facts.
Sourcepub const fn exact_source_timing(&self) -> Option<&ExactSourceTimingBindingV1>
pub const fn exact_source_timing(&self) -> Option<&ExactSourceTimingBindingV1>
Same-load exact source timing evidence, when retained.
Sourcepub const fn primary_input(&self) -> &InputIdentity
pub const fn primary_input(&self) -> &InputIdentity
Primary-input identity inherited from V1 raw-source facts.
Sourcepub const fn source_format(&self) -> SourceFormatV1
pub const fn source_format(&self) -> SourceFormatV1
Source format inherited from V1 raw-source facts.
Sourcepub const fn clips_coverage(&self) -> RawSourceSetCoverageV1
pub const fn clips_coverage(&self) -> RawSourceSetCoverageV1
Clip-set coverage inherited from V1 raw-source facts.
Trait Implementations§
Source§impl Clone for RawSourceBindingV2
impl Clone for RawSourceBindingV2
Source§fn clone(&self) -> RawSourceBindingV2
fn clone(&self) -> RawSourceBindingV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawSourceBindingV2
impl Debug for RawSourceBindingV2
Source§impl<'de> Deserialize<'de> for RawSourceBindingV2
impl<'de> Deserialize<'de> for RawSourceBindingV2
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RawSourceBindingV2
Source§impl PartialEq for RawSourceBindingV2
impl PartialEq for RawSourceBindingV2
Source§impl Serialize for RawSourceBindingV2
impl Serialize for RawSourceBindingV2
impl StructuralPartialEq for RawSourceBindingV2
Auto Trait Implementations§
impl Freeze for RawSourceBindingV2
impl RefUnwindSafe for RawSourceBindingV2
impl Send for RawSourceBindingV2
impl Sync for RawSourceBindingV2
impl Unpin for RawSourceBindingV2
impl UnsafeUnpin for RawSourceBindingV2
impl UnwindSafe for RawSourceBindingV2
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