Skip to main content

WindowLiningDraft

Struct WindowLiningDraft 

Source
#[non_exhaustive]
pub struct WindowLiningDraft<'a> {
Show 14 fields pub name: Option<&'a str>, pub description: Option<&'a str>, pub lining_depth: Option<f64>, pub lining_thickness: Option<f64>, pub transom_thickness: Option<f64>, pub mullion_thickness: Option<f64>, pub first_transom_offset: Option<f64>, pub second_transom_offset: Option<f64>, pub first_mullion_offset: Option<f64>, pub second_mullion_offset: Option<f64>, pub shape_aspect_style: Option<EntityId>, pub lining_offset: Option<f64>, pub lining_to_panel_offset_x: Option<f64>, pub lining_to_panel_offset_y: Option<f64>,
}
Expand description

Attributes of an IfcWindowLiningProperties.

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.

§description: Option<&'a str>

Description.

§lining_depth: Option<f64>

LiningDepth, a positive length. Requires lining_thickness (WR31).

§lining_thickness: Option<f64>

LiningThickness, a non-negative length.

§transom_thickness: Option<f64>

TransomThickness, a non-negative length.

§mullion_thickness: Option<f64>

MullionThickness, a non-negative length.

§first_transom_offset: Option<f64>

FirstTransomOffset, a normalised ratio.

§second_transom_offset: Option<f64>

SecondTransomOffset, a normalised ratio. Needs the first (WR32).

§first_mullion_offset: Option<f64>

FirstMullionOffset, a normalised ratio.

§second_mullion_offset: Option<f64>

SecondMullionOffset, a normalised ratio. Needs the first (WR33).

§shape_aspect_style: Option<EntityId>

ShapeAspectStyle.

§lining_offset: Option<f64>

LiningOffset, a length.

§lining_to_panel_offset_x: Option<f64>

LiningToPanelOffsetX, a length.

§lining_to_panel_offset_y: Option<f64>

LiningToPanelOffsetY, a length.

Implementations§

Source§

impl<'a> WindowLiningDraft<'a>

Source

pub fn new() -> Self

Starts a draft with every field unset.

Source

pub fn name(self, value: &'a str) -> Self

Sets name.

Name.

Source

pub fn description(self, value: &'a str) -> Self

Sets description.

Description.

Source

pub fn lining_depth(self, value: f64) -> Self

Sets lining_depth.

LiningDepth, a positive length. Requires lining_thickness (WR31).

Source

pub fn lining_thickness(self, value: f64) -> Self

Sets lining_thickness.

LiningThickness, a non-negative length.

Source

pub fn transom_thickness(self, value: f64) -> Self

Sets transom_thickness.

TransomThickness, a non-negative length.

Source

pub fn mullion_thickness(self, value: f64) -> Self

Sets mullion_thickness.

MullionThickness, a non-negative length.

Source

pub fn first_transom_offset(self, value: f64) -> Self

Sets first_transom_offset.

FirstTransomOffset, a normalised ratio.

Source

pub fn second_transom_offset(self, value: f64) -> Self

Sets second_transom_offset.

SecondTransomOffset, a normalised ratio. Needs the first (WR32).

Source

pub fn first_mullion_offset(self, value: f64) -> Self

Sets first_mullion_offset.

FirstMullionOffset, a normalised ratio.

Source

pub fn second_mullion_offset(self, value: f64) -> Self

Sets second_mullion_offset.

SecondMullionOffset, a normalised ratio. Needs the first (WR33).

Source

pub fn shape_aspect_style(self, value: EntityId) -> Self

Sets shape_aspect_style.

ShapeAspectStyle.

Source

pub fn lining_offset(self, value: f64) -> Self

Sets lining_offset.

LiningOffset, a length.

Source

pub fn lining_to_panel_offset_x(self, value: f64) -> Self

Sets lining_to_panel_offset_x.

LiningToPanelOffsetX, a length.

Source

pub fn lining_to_panel_offset_y(self, value: f64) -> Self

Sets lining_to_panel_offset_y.

LiningToPanelOffsetY, a length.

Trait Implementations§

Source§

impl<'a> Clone for WindowLiningDraft<'a>

Source§

fn clone(&self) -> WindowLiningDraft<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for WindowLiningDraft<'a>

Source§

impl<'a> Debug for WindowLiningDraft<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for WindowLiningDraft<'a>

Source§

fn default() -> WindowLiningDraft<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for WindowLiningDraft<'a>

§

impl<'a> RefUnwindSafe for WindowLiningDraft<'a>

§

impl<'a> Send for WindowLiningDraft<'a>

§

impl<'a> Sync for WindowLiningDraft<'a>

§

impl<'a> Unpin for WindowLiningDraft<'a>

§

impl<'a> UnsafeUnpin for WindowLiningDraft<'a>

§

impl<'a> UnwindSafe for WindowLiningDraft<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.