pub struct BindingSet { /* private fields */ }Expand description
Complete typed bindings for one immutable artifact instance.
Implementations§
Source§impl BindingSet
impl BindingSet
Sourcepub const fn new(artifact: Digest) -> Self
pub const fn new(artifact: Digest) -> Self
Construct an empty binding set tied to one artifact identity.
Sourcepub fn insert(&mut self, value: ArtifactValueId, resource: BoundResource)
pub fn insert(&mut self, value: ArtifactValueId, resource: BoundResource)
Bind or replace one canonical value.
Sourcepub const fn resources(&self) -> &BTreeMap<ArtifactValueId, BoundResource>
pub const fn resources(&self) -> &BTreeMap<ArtifactValueId, BoundResource>
Exact canonical value bindings.
Sourcepub fn set_invocation_grid(
&mut self,
grid: [u32; 3],
) -> Result<(), BackendError>
pub fn set_invocation_grid( &mut self, grid: [u32; 3], ) -> Result<(), BackendError>
Set the runtime invocation grid without changing immutable artifact identity.
Sourcepub const fn invocation_grid(&self) -> Option<[u32; 3]>
pub const fn invocation_grid(&self) -> Option<[u32; 3]>
Runtime grid override for this invocation.
Trait Implementations§
Source§impl Clone for BindingSet
impl Clone for BindingSet
Source§fn clone(&self) -> BindingSet
fn clone(&self) -> BindingSet
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 BindingSet
impl Debug for BindingSet
impl Eq for BindingSet
Source§impl PartialEq for BindingSet
impl PartialEq for BindingSet
impl StructuralPartialEq for BindingSet
Auto Trait Implementations§
impl Freeze for BindingSet
impl RefUnwindSafe for BindingSet
impl Send for BindingSet
impl Sync for BindingSet
impl Unpin for BindingSet
impl UnsafeUnpin for BindingSet
impl UnwindSafe for BindingSet
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<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
Compare self to
key and return true if they are equal.