#[repr(C)]pub struct PioBranchSwitchingCost {
pub id: PioStringView,
pub open_cost: f64,
pub close_cost: f64,
}Expand description
One branch’s opening and closing cost in objective units, by branch identity. Only a change against the initial topology costs anything.
Fields§
§id: PioStringView§open_cost: f64§close_cost: f64Trait Implementations§
Source§impl Clone for PioBranchSwitchingCost
impl Clone for PioBranchSwitchingCost
impl Copy for PioBranchSwitchingCost
Auto Trait Implementations§
impl !Send for PioBranchSwitchingCost
impl !Sync for PioBranchSwitchingCost
impl Freeze for PioBranchSwitchingCost
impl RefUnwindSafe for PioBranchSwitchingCost
impl Unpin for PioBranchSwitchingCost
impl UnsafeUnpin for PioBranchSwitchingCost
impl UnwindSafe for PioBranchSwitchingCost
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