pub struct WeightBindingPlan<'a> { /* private fields */ }Expand description
Validated owner/alias partition for one atomic binding unit.
Implementations§
Source§impl<'a> WeightBindingPlan<'a>
impl<'a> WeightBindingPlan<'a>
Sourcepub fn new(
bindings: &'a [WeightBinding],
) -> Result<Self, ResidencyDeclarationError>
pub fn new( bindings: &'a [WeightBinding], ) -> Result<Self, ResidencyDeclarationError>
Validates unique identities, owner existence, cycles, and byte geometry.
Sourcepub fn owners(&self) -> impl Iterator<Item = &'a WeightBinding> + '_
pub fn owners(&self) -> impl Iterator<Item = &'a WeightBinding> + '_
Canonical bindings which require physical materialization.
Sourcepub fn aliases(
&self,
) -> impl Iterator<Item = (&'a WeightBinding, &'a WeightBinding)> + '_
pub fn aliases( &self, ) -> impl Iterator<Item = (&'a WeightBinding, &'a WeightBinding)> + '_
Logical aliases paired with their resolved canonical owners.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WeightBindingPlan<'a>
impl<'a> RefUnwindSafe for WeightBindingPlan<'a>
impl<'a> Send for WeightBindingPlan<'a>
impl<'a> Sync for WeightBindingPlan<'a>
impl<'a> Unpin for WeightBindingPlan<'a>
impl<'a> UnsafeUnpin for WeightBindingPlan<'a>
impl<'a> UnwindSafe for WeightBindingPlan<'a>
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