Struct ruststep::ast::DataSection [−][src]
pub struct DataSection {
pub meta: Vec<Parameter>,
pub entities: Vec<EntityInstance>,
}
Expand description
DATA
section in STEP file
use ruststep::ast::DataSection;
use std::str::FromStr;
let input = r#"
DATA;
#1 = A(1.0, 2.0);
#2 = B(3.0, A((4.0, 5.0)));
#3 = B(6.0, #1);
ENDSEC;
"#;
let data_section = DataSection::from_str(input).unwrap();
dbg!(data_section);
Fields
meta: Vec<Parameter>
Metadata
entities: Vec<EntityInstance>
Each lines in data section
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DataSection
impl Send for DataSection
impl Sync for DataSection
impl Unpin for DataSection
impl UnwindSafe for DataSection
Blanket Implementations
Mutably borrows from an owned value. Read more