Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
use pnp::part::Part;
use crate::criteria::PlacementMappingCriteria;
#[cfg_attr(any(test, feature = "testing"), derive(PartialEq))]
#[derive(Debug)]
pub struct PartMapping<'part> {
pub part: &'part Part,
pub criteria: Vec<Box<dyn PlacementMappingCriteria>>,
}
impl<'part> PartMapping<'part> {
pub fn new(part: &'part Part, criteria: Vec<Box<dyn PlacementMappingCriteria>>) -> Self {
Self {
part,
criteria,
}
}
}
da606293eThis file is pinned to the selected release. Download the original to open it in your design tool.