pub struct MaterialLayer<'m> { /* private fields */ }Expand description
Borrowed projection of IFCMATERIALLAYER.
Implementations§
Source§impl<'m> MaterialLayer<'m>
impl<'m> MaterialLayer<'m>
Sourcepub fn try_new(id: EntityId, entity: &'m Entity) -> MaterialResult<Self>
pub fn try_new(id: EntityId, entity: &'m Entity) -> MaterialResult<Self>
Wraps entity as this view after checking it is an instance
of the expected IFC entity type; fails with
crate::MaterialError::WrongEntityType otherwise.
Source§impl<'m> MaterialLayer<'m>
impl<'m> MaterialLayer<'m>
Sourcepub fn material_id(self) -> MaterialResult<Option<EntityId>>
pub fn material_id(self) -> MaterialResult<Option<EntityId>>
Material, the associated IfcMaterial, if given.
Sourcepub fn thickness(self) -> MaterialResult<f64>
pub fn thickness(self) -> MaterialResult<f64>
LayerThickness. Required and must be non-negative.
Sourcepub fn is_ventilated(self) -> MaterialResult<Option<LogicalValue>>
pub fn is_ventilated(self) -> MaterialResult<Option<LogicalValue>>
IsVentilated, if given.
Sourcepub fn name(self) -> MaterialResult<Option<&'m str>>
pub fn name(self) -> MaterialResult<Option<&'m str>>
Name, if given.
Sourcepub fn description(self) -> MaterialResult<Option<&'m str>>
pub fn description(self) -> MaterialResult<Option<&'m str>>
Description, if given.
Sourcepub fn category(self) -> MaterialResult<Option<&'m str>>
pub fn category(self) -> MaterialResult<Option<&'m str>>
Category, if given.
Sourcepub fn priority(self) -> MaterialResult<Option<i64>>
pub fn priority(self) -> MaterialResult<Option<i64>>
Priority, if given. Must be in 0..=100.
Trait Implementations§
Source§impl<'m> Clone for MaterialLayer<'m>
impl<'m> Clone for MaterialLayer<'m>
impl<'m> Copy for MaterialLayer<'m>
Auto Trait Implementations§
impl<'m> Freeze for MaterialLayer<'m>
impl<'m> RefUnwindSafe for MaterialLayer<'m>
impl<'m> Send for MaterialLayer<'m>
impl<'m> Sync for MaterialLayer<'m>
impl<'m> Unpin for MaterialLayer<'m>
impl<'m> UnsafeUnpin for MaterialLayer<'m>
impl<'m> UnwindSafe for MaterialLayer<'m>
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