pub struct Line {
pub item: String,
pub level: usize,
pub quantity: u64,
pub name: String,
pub designation: Option<String>,
pub kind: LineKind,
pub placements: Vec<String>,
}Expand description
One line of a bill of materials.
Fields§
§item: StringIts item number: 3 in a flat bill, 2.1 — the first under item
2 — in an indented one.
level: usizeHow deep it is placed: 0 in a flat bill, 1 for what the assembly places itself in an indented one.
quantity: u64§name: StringA standard part’s title, else its file’s name; a wire’s name.
designation: Option<String>A standard part’s designation; a wire’s gauge or diameter.
kind: LineKind§placements: Vec<String>Where the parts it counts are placed, as the entities of placed
parts are named: in a flat bill from the assembly, arm/screw for
the part placed as screw in the one placed as arm, "" for the
assembly’s own bodies; in an indented one from the sub-assembly it
is listed under. Empty for a wire. What a drawing balloons.
Trait Implementations§
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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