pub struct SectionEntry {
pub name: String,
pub designation: String,
pub section: Section,
pub parametric: Option<Rc<dyn ParametricSection>>,
pub material: Option<Material>,
pub properties: Option<SectionProperties>,
pub tags: Vec<String>,
pub source: String,
pub metadata: HashMap<String, String>,
}Expand description
High-level section entry with metadata.
Fields§
§name: String§designation: String§section: Section§parametric: Option<Rc<dyn ParametricSection>>§material: Option<Material>§properties: Option<SectionProperties>§source: String§metadata: HashMap<String, String>Implementations§
Source§impl SectionEntry
impl SectionEntry
pub fn new<S: ParametricSection + 'static>( parametric: S, material: Option<Material>, ) -> Self
pub fn from_section(section: Section, name: String, source: String) -> Self
pub fn with_metadata(self, key: String, value: String) -> Self
pub fn area(&self) -> f64
pub fn ix(&self) -> f64
pub fn iy(&self) -> f64
pub fn weight_per_meter(&self, density: f64) -> f64
Trait Implementations§
Source§impl Clone for SectionEntry
impl Clone for SectionEntry
Auto Trait Implementations§
impl !RefUnwindSafe for SectionEntry
impl !Send for SectionEntry
impl !Sync for SectionEntry
impl !UnwindSafe for SectionEntry
impl Forget for SectionEntry
impl Freeze for SectionEntry
impl Move for SectionEntry
impl Unpin for SectionEntry
impl UnsafeUnpin for SectionEntry
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