pub struct WireBomLine {
pub id: String,
pub connection_id: String,
pub stock_part_number: String,
pub length: Option<f64>,
pub margin: f64,
pub mf_qty: Option<f64>,
pub state: WireLengthState,
}Expand description
One wire as a BOM line.
Fields§
§id: StringThe harness connection id (wire-N) — the line’s stable key.
connection_id: StringThe connection ID the line shows: the connection’s name, else its id.
stock_part_number: StringThe stock part number of the wire. Blank for a hand-added harness wire; a wire a Diagram generates carries eCAD’s.
length: Option<f64>The routed length, only when state is WireLengthState::Current.
margin: f64The block’s cut margin, added once to this wire.
mf_qty: Option<f64>The cut length: length + margin, only when length is.
state: WireLengthStateTrait Implementations§
Source§impl Clone for WireBomLine
impl Clone for WireBomLine
Source§impl Debug for WireBomLine
impl Debug for WireBomLine
Source§impl PartialEq for WireBomLine
impl PartialEq for WireBomLine
impl StructuralPartialEq for WireBomLine
Auto Trait Implementations§
impl Freeze for WireBomLine
impl RefUnwindSafe for WireBomLine
impl Send for WireBomLine
impl Sync for WireBomLine
impl Unpin for WireBomLine
impl UnsafeUnpin for WireBomLine
impl UnwindSafe for WireBomLine
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> 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