Struct ruststep::ast::DataSection
source · [−]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
sourceimpl AST for DataSection
impl AST for DataSection
fn parse(input: &str) -> ParseResult<'_, Self>
sourceimpl Clone for DataSection
impl Clone for DataSection
sourcefn clone(&self) -> DataSection
fn clone(&self) -> DataSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DataSection
impl Debug for DataSection
sourceimpl FromStr for DataSection
impl FromStr for DataSection
sourceimpl PartialEq<DataSection> for DataSection
impl PartialEq<DataSection> for DataSection
sourcefn eq(&self, other: &DataSection) -> bool
fn eq(&self, other: &DataSection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataSection) -> bool
fn ne(&self, other: &DataSection) -> bool
This method tests for !=
.
impl StructuralPartialEq for DataSection
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more