#[non_exhaustive]pub struct CurveStyleDraft<'a> {
pub name: Option<&'a str>,
pub curve_font: Option<EntityId>,
pub curve_width: Option<CurveWidth>,
pub curve_colour: Option<EntityId>,
pub model_or_draughting: Option<bool>,
}Expand description
Attributes of an IfcCurveStyle.
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.name: Option<&'a str>Name.
curve_font: Option<EntityId>CurveFont: an IfcCurveStyleFont or IfcCurveStyleFontAndScaling.
curve_width: Option<CurveWidth>CurveWidth.
curve_colour: Option<EntityId>CurveColour: an IfcColourRgb or predefined colour.
model_or_draughting: Option<bool>ModelOrDraughting.
Implementations§
Source§impl<'a> CurveStyleDraft<'a>
impl<'a> CurveStyleDraft<'a>
Sourcepub fn curve_font(self, value: EntityId) -> Self
pub fn curve_font(self, value: EntityId) -> Self
Sets curve_font.
CurveFont: an IfcCurveStyleFont or IfcCurveStyleFontAndScaling.
Sourcepub fn curve_width(self, value: CurveWidth) -> Self
pub fn curve_width(self, value: CurveWidth) -> Self
Sets curve_width.
CurveWidth.
Sourcepub fn curve_colour(self, value: EntityId) -> Self
pub fn curve_colour(self, value: EntityId) -> Self
Sets curve_colour.
CurveColour: an IfcColourRgb or predefined colour.
Sourcepub fn model_or_draughting(self, value: bool) -> Self
pub fn model_or_draughting(self, value: bool) -> Self
Sets model_or_draughting.
ModelOrDraughting.
Trait Implementations§
Source§impl<'a> Clone for CurveStyleDraft<'a>
impl<'a> Clone for CurveStyleDraft<'a>
Source§fn clone(&self) -> CurveStyleDraft<'a>
fn clone(&self) -> CurveStyleDraft<'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 CurveStyleDraft<'a>
Source§impl<'a> Debug for CurveStyleDraft<'a>
impl<'a> Debug for CurveStyleDraft<'a>
Source§impl<'a> Default for CurveStyleDraft<'a>
impl<'a> Default for CurveStyleDraft<'a>
Source§fn default() -> CurveStyleDraft<'a>
fn default() -> CurveStyleDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for CurveStyleDraft<'a>
impl<'a> RefUnwindSafe for CurveStyleDraft<'a>
impl<'a> Send for CurveStyleDraft<'a>
impl<'a> Sync for CurveStyleDraft<'a>
impl<'a> Unpin for CurveStyleDraft<'a>
impl<'a> UnsafeUnpin for CurveStyleDraft<'a>
impl<'a> UnwindSafe for CurveStyleDraft<'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