pub struct RealtimeWeightComponentRequirement { /* private fields */ }Expand description
One exact physical or transform-generated component of a matrix lowering.
Implementations§
Source§impl RealtimeWeightComponentRequirement
impl RealtimeWeightComponentRequirement
Sourcepub fn new(
target: RealtimeIdentity,
recipe_owner: Option<RealtimeIdentity>,
recipe_identity: Option<RealtimeIdentity>,
recipe: Option<DerivedWeightRecipe>,
recipe_output: Option<RecipeMetadata>,
source_occurrences: impl IntoIterator<Item = RealtimeIdentity>,
physical_shape: impl Into<Vec<usize>>,
role: RealtimeWeightComponentRole,
) -> Result<Self, RealtimeContractError>
pub fn new( target: RealtimeIdentity, recipe_owner: Option<RealtimeIdentity>, recipe_identity: Option<RealtimeIdentity>, recipe: Option<DerivedWeightRecipe>, recipe_output: Option<RecipeMetadata>, source_occurrences: impl IntoIterator<Item = RealtimeIdentity>, physical_shape: impl Into<Vec<usize>>, role: RealtimeWeightComponentRole, ) -> Result<Self, RealtimeContractError>
Creates one recipe-backed source component or one generated target component.
Sourcepub const fn target(&self) -> &RealtimeIdentity
pub const fn target(&self) -> &RealtimeIdentity
Returns the exact executable component target.
Sourcepub const fn recipe_owner(&self) -> Option<&RealtimeIdentity>
pub const fn recipe_owner(&self) -> Option<&RealtimeIdentity>
Returns the canonical recipe owner for a source-backed component.
Sourcepub const fn recipe_identity(&self) -> Option<&RealtimeIdentity>
pub const fn recipe_identity(&self) -> Option<&RealtimeIdentity>
Returns the exact recipe identity for a source-backed component.
Sourcepub const fn recipe(&self) -> Option<&DerivedWeightRecipe>
pub const fn recipe(&self) -> Option<&DerivedWeightRecipe>
Returns the exact selected architecture recipe for a source-backed component.
Sourcepub const fn recipe_output(&self) -> Option<&RecipeMetadata>
pub const fn recipe_output(&self) -> Option<&RecipeMetadata>
Returns exact admission-time output metadata for a source-backed component.
Sourcepub fn source_occurrences(&self) -> &[RealtimeIdentity]
pub fn source_occurrences(&self) -> &[RealtimeIdentity]
Returns source identities in recipe traversal order, retaining duplicates.
Sourcepub fn physical_shape(&self) -> &[usize]
pub fn physical_shape(&self) -> &[usize]
Returns exact component geometry before rank-local construction.
Sourcepub const fn role(&self) -> RealtimeWeightComponentRole
pub const fn role(&self) -> RealtimeWeightComponentRole
Returns the component’s semantic matrix-family role.
Sourcepub const fn is_recipe_backed(&self) -> bool
pub const fn is_recipe_backed(&self) -> bool
Returns whether this component is produced by an architecture recipe.
Trait Implementations§
Source§impl Clone for RealtimeWeightComponentRequirement
impl Clone for RealtimeWeightComponentRequirement
Source§fn clone(&self) -> RealtimeWeightComponentRequirement
fn clone(&self) -> RealtimeWeightComponentRequirement
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 moreimpl Eq for RealtimeWeightComponentRequirement
impl StructuralPartialEq for RealtimeWeightComponentRequirement
Auto Trait Implementations§
impl Freeze for RealtimeWeightComponentRequirement
impl RefUnwindSafe for RealtimeWeightComponentRequirement
impl Send for RealtimeWeightComponentRequirement
impl Sync for RealtimeWeightComponentRequirement
impl Unpin for RealtimeWeightComponentRequirement
impl UnsafeUnpin for RealtimeWeightComponentRequirement
impl UnwindSafe for RealtimeWeightComponentRequirement
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