#[non_exhaustive]pub struct Info {
pub bytes: usize,
pub header: Header,
pub sections: usize,
pub instances: usize,
pub complex_instances: usize,
pub products: usize,
pub assembly_usages: usize,
pub unresolved_references: usize,
pub units: Units,
pub entity_types: Vec<EntityCount>,
}Expand description
Summary of a parsed file; see Info::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bytes: usizeSize of the source in bytes.
header: HeaderDecoded header fields.
sections: usizeNumber of data sections.
instances: usizeNumber of entity instances.
complex_instances: usizeHow many of those instances are complex.
products: usizeInstances with a PRODUCT record.
assembly_usages: usizeNEXT_ASSEMBLY_USAGE_OCCURRENCE instances: one per component
placed in an assembly. Zero for a single part.
unresolved_references: usizeReferences to instances that are not defined.
units: UnitsUnits the file declares.
entity_types: Vec<EntityCount>Record counts per entity type, most frequent first, then by name. Names are upper-cased. A complex instance counts once for each of its partial entities.
Implementations§
Trait Implementations§
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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