pub struct ChainPlacementPlan {
pub devices: Vec<PlacedChainDevice>,
}Expand description
Plan listing the placement of every device in a chain.
Fields§
§devices: Vec<PlacedChainDevice>Placed devices, sorted by device id.
Implementations§
Source§impl ChainPlacementPlan
impl ChainPlacementPlan
Sourcepub fn new(devices: Vec<PlacedChainDevice>) -> Self
pub fn new(devices: Vec<PlacedChainDevice>) -> Self
Builds a plan, sorting devices by id for stable output.
Sourcepub fn from_expr(expr: &Expr) -> Result<Self>
pub fn from_expr(expr: &Expr) -> Result<Self>
Decodes a plan from a list produced by ChainPlacementPlan::to_expr.
Trait Implementations§
Source§impl Clone for ChainPlacementPlan
impl Clone for ChainPlacementPlan
Source§fn clone(&self) -> ChainPlacementPlan
fn clone(&self) -> ChainPlacementPlan
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 ChainPlacementPlan
impl Debug for ChainPlacementPlan
impl Eq for ChainPlacementPlan
Source§impl PartialEq for ChainPlacementPlan
impl PartialEq for ChainPlacementPlan
impl StructuralPartialEq for ChainPlacementPlan
Auto Trait Implementations§
impl Freeze for ChainPlacementPlan
impl RefUnwindSafe for ChainPlacementPlan
impl Send for ChainPlacementPlan
impl Sync for ChainPlacementPlan
impl Unpin for ChainPlacementPlan
impl UnsafeUnpin for ChainPlacementPlan
impl UnwindSafe for ChainPlacementPlan
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