pub struct SpeculativeCaptureSchema { /* private fields */ }Expand description
Exact ordered target-capture contract declared by an architecture.
Implementations§
Source§impl SpeculativeCaptureSchema
impl SpeculativeCaptureSchema
Sourcepub fn new(
identity: SpeculativeIdentity,
entries: impl IntoIterator<Item = SpeculativeCaptureEntry>,
) -> Result<Self, SpeculativeContractError>
pub fn new( identity: SpeculativeIdentity, entries: impl IntoIterator<Item = SpeculativeCaptureEntry>, ) -> Result<Self, SpeculativeContractError>
Creates a nonempty schema with unique paths and observation identities.
Sourcepub const fn identity(&self) -> &SpeculativeIdentity
pub const fn identity(&self) -> &SpeculativeIdentity
Returns the stable schema identity.
Sourcepub fn entries(&self) -> &[SpeculativeCaptureEntry]
pub fn entries(&self) -> &[SpeculativeCaptureEntry]
Returns capture entries in semantic consumption order.
Sourcepub fn instantiate(
&self,
shapes: impl IntoIterator<Item = Vec<usize>>,
) -> Result<Self, SpeculativeCaptureError>
pub fn instantiate( &self, shapes: impl IntoIterator<Item = Vec<usize>>, ) -> Result<Self, SpeculativeCaptureError>
Closes request-sized dimensions while retaining paths, order, ownership, and observations.
Trait Implementations§
Source§impl Clone for SpeculativeCaptureSchema
impl Clone for SpeculativeCaptureSchema
Source§fn clone(&self) -> SpeculativeCaptureSchema
fn clone(&self) -> SpeculativeCaptureSchema
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 SpeculativeCaptureSchema
impl Debug for SpeculativeCaptureSchema
impl Eq for SpeculativeCaptureSchema
Source§impl PartialEq for SpeculativeCaptureSchema
impl PartialEq for SpeculativeCaptureSchema
impl StructuralPartialEq for SpeculativeCaptureSchema
Auto Trait Implementations§
impl Freeze for SpeculativeCaptureSchema
impl RefUnwindSafe for SpeculativeCaptureSchema
impl Send for SpeculativeCaptureSchema
impl Sync for SpeculativeCaptureSchema
impl Unpin for SpeculativeCaptureSchema
impl UnsafeUnpin for SpeculativeCaptureSchema
impl UnwindSafe for SpeculativeCaptureSchema
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