pub struct BomTree {Show 13 fields
pub rule: RevisionRule,
pub root: ResolvedRevision,
pub root_item_number: String,
pub children: Vec<BomNode>,
pub total_mass_kg: f64,
pub total_cost: f64,
pub mass_complete: bool,
pub cost_complete: bool,
pub line_count: usize,
pub unresolved_count: usize,
pub restricted_lines: usize,
pub rollup_incomplete: bool,
pub queries: usize,
}Fields§
§rule: RevisionRule§root: ResolvedRevision§root_item_number: String§children: Vec<BomNode>§total_mass_kg: f64§total_cost: f64§mass_complete: bool§cost_complete: bool§line_count: usizeNumber of lines in the fully expanded structure.
unresolved_count: usizeNumber of lines whose child could not be resolved with the rule.
restricted_lines: usizeLines to children the reader may not see (placeholders).
rollup_incomplete: boolMass and cost exclude restricted lines.
queries: usizeDatabase queries the expansion took (root + one per BOM level).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BomTree
impl RefUnwindSafe for BomTree
impl Send for BomTree
impl Sync for BomTree
impl Unpin for BomTree
impl UnsafeUnpin for BomTree
impl UnwindSafe for BomTree
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.