pub struct MaterializedUnit<B: ParameterBackend> { /* private fields */ }Expand description
One fully realized atomic unit keyed by stable parameter identity.
Implementations§
Source§impl<B: ParameterBackend> MaterializedUnit<B>
impl<B: ParameterBackend> MaterializedUnit<B>
Sourcepub fn try_from_weights(
weights: impl IntoIterator<Item = (ParameterId, B::MaterializedWeight)>,
) -> Result<Self, ParameterOrchestrationError<B::ParameterError>>
pub fn try_from_weights( weights: impl IntoIterator<Item = (ParameterId, B::MaterializedWeight)>, ) -> Result<Self, ParameterOrchestrationError<B::ParameterError>>
Creates a realized unit from already completed backend-native weights.
This supports bounded backend executors while preserving the singular neutral traversal and atomic publication path.
Sourcepub fn contains(&self, id: &ParameterId) -> bool
pub fn contains(&self, id: &ParameterId) -> bool
Returns whether a stable parameter identity is present.
Auto Trait Implementations§
impl<B> Freeze for MaterializedUnit<B>
impl<B> RefUnwindSafe for MaterializedUnit<B>
impl<B> Send for MaterializedUnit<B>
impl<B> Sync for MaterializedUnit<B>
impl<B> Unpin for MaterializedUnit<B>
impl<B> UnsafeUnpin for MaterializedUnit<B>
impl<B> UnwindSafe for MaterializedUnit<B>
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