pub struct MechanismAssignment {
pub node: DenseNodeId,
pub variable: VariableId,
pub candidates: Arc<[MechanismCandidate]>,
pub selected: MechanismFamily,
pub fitted: MechanismSlot,
pub failed_families: Arc<[(MechanismFamily, String)]>,
}Expand description
Result of auto-assignment for one node.
Fields§
§node: DenseNodeIdDense node.
variable: VariableIdVariable.
candidates: Arc<[MechanismCandidate]>All scored candidates (sorted descending by score).
selected: MechanismFamilySelected family (must be chosen explicitly from candidates).
fitted: MechanismSlotFitted slot.
failed_families: Arc<[(MechanismFamily, String)]>Families that failed to score/fit, with error messages.
Trait Implementations§
Source§impl Clone for MechanismAssignment
impl Clone for MechanismAssignment
Source§fn clone(&self) -> MechanismAssignment
fn clone(&self) -> MechanismAssignment
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for MechanismAssignment
impl !UnwindSafe for MechanismAssignment
impl Freeze for MechanismAssignment
impl Send for MechanismAssignment
impl Sync for MechanismAssignment
impl Unpin for MechanismAssignment
impl UnsafeUnpin for MechanismAssignment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> ForeignBufferOwner for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more