#[non_exhaustive]pub struct SectionReinforcementDraft<'a> {
pub longitudinal_start_position: f64,
pub longitudinal_end_position: f64,
pub transverse_position: Option<f64>,
pub reinforcement_role: &'a str,
pub section_definition: EntityId,
pub cross_section_reinforcement_definitions: &'a [EntityId],
}Expand description
Attributes of an IfcSectionReinforcementProperties.
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.longitudinal_start_position: f64LongitudinalStartPosition, a length. Required.
longitudinal_end_position: f64LongitudinalEndPosition, a length. Required.
transverse_position: Option<f64>TransversePosition, a length.
reinforcement_role: &'a strReinforcementRole, from IfcReinforcingBarRoleEnum. Required.
section_definition: EntityIdSectionDefinition: an IfcSectionProperties. Required.
cross_section_reinforcement_definitions: &'a [EntityId]CrossSectionReinforcementDefinitions: at least one
IfcReinforcementBarProperties.
Implementations§
Source§impl<'a> SectionReinforcementDraft<'a>
impl<'a> SectionReinforcementDraft<'a>
Sourcepub fn new(
longitudinal_start_position: f64,
longitudinal_end_position: f64,
reinforcement_role: &'a str,
section_definition: EntityId,
cross_section_reinforcement_definitions: &'a [EntityId],
) -> Self
pub fn new( longitudinal_start_position: f64, longitudinal_end_position: f64, reinforcement_role: &'a str, section_definition: EntityId, cross_section_reinforcement_definitions: &'a [EntityId], ) -> Self
Starts a draft from its required longitudinal_start_position,
longitudinal_end_position, reinforcement_role, section_definition,
cross_section_reinforcement_definitions; every other field is unset.
Sourcepub fn transverse_position(self, value: f64) -> Self
pub fn transverse_position(self, value: f64) -> Self
Sets transverse_position.
TransversePosition, a length.
Trait Implementations§
Source§impl<'a> Clone for SectionReinforcementDraft<'a>
impl<'a> Clone for SectionReinforcementDraft<'a>
Source§fn clone(&self) -> SectionReinforcementDraft<'a>
fn clone(&self) -> SectionReinforcementDraft<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SectionReinforcementDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for SectionReinforcementDraft<'a>
impl<'a> RefUnwindSafe for SectionReinforcementDraft<'a>
impl<'a> Send for SectionReinforcementDraft<'a>
impl<'a> Sync for SectionReinforcementDraft<'a>
impl<'a> Unpin for SectionReinforcementDraft<'a>
impl<'a> UnsafeUnpin for SectionReinforcementDraft<'a>
impl<'a> UnwindSafe for SectionReinforcementDraft<'a>
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