Skip to main content

Building

Struct Building 

Source
pub struct Building { /* private fields */ }

Implementations§

Source§

impl Building

Source

pub fn new(id: Id) -> Building

Source

pub fn from_abstract_building(abstract_building: AbstractBuilding) -> Building

Source

pub fn building_parts(&self) -> &[BuildingPartProperty]

Source

pub fn building_parts_mut(&mut self) -> &mut [BuildingPartProperty]

Source

pub fn set_building_parts(&mut self, building_parts: Vec<BuildingPartProperty>)

Source

pub fn push_building_part(&mut self, building_part: BuildingPartProperty)

Source

pub fn extend_building_parts( &mut self, building_parts: impl IntoIterator<Item = BuildingPartProperty>, )

Trait Implementations§

Source§

impl ApplyTransform for Building

Source§

fn apply_transform(&mut self, m: Transform<f64, TGeneral, 3>)

Source§

fn apply_isometry(&mut self, isometry: Isometry<f64, Unit<Quaternion<f64>>, 3>)

Source§

fn apply_translation( &mut self, vector: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>, )

Source§

fn apply_rotation(&mut self, rotation: Rotation<f64, 3>)

Source§

fn apply_scale(&mut self, scale: Scale<f64, 3>)

Source§

impl AsAbstractBuilding for Building

Source§

fn abstract_building(&self) -> &AbstractBuilding

Source§

fn class(&self) -> Option<&BuildingClassValue>

Source§

fn class_as<T>(&self) -> Option<T>
where T: CodeListValue,

Interprets class against a specific code list, if its codeSpace matches (or class has no codeSpace at all).
Source§

fn functions(&self) -> &[BuildingFunctionValue]

Source§

fn functions_as<T>(&self) -> impl Iterator<Item = T>
where T: CodeListValue + 'static,

Interprets functions against a specific code list, yielding only the entries whose codeSpace matches (or have no codeSpace at all).
Source§

fn usages(&self) -> &[BuildingUsageValue]

Source§

fn usages_as<T>(&self) -> impl Iterator<Item = T>
where T: CodeListValue + 'static,

Interprets usages against a specific code list, yielding only the entries whose codeSpace matches (or have no codeSpace at all).
Source§

fn roof_type(&self) -> Option<&RoofTypeValue>

Source§

fn roof_type_as<T>(&self) -> Option<T>
where T: CodeListValue,

Interprets roofType against a specific code list, if its codeSpace matches (or roofType has no codeSpace at all).
Source§

fn storeys_above_ground(&self) -> Option<i64>

Source§

fn storeys_below_ground(&self) -> Option<i64>

Source§

fn building_constructive_elements( &self, ) -> &[BuildingConstructiveElementProperty]

Source§

fn building_installations(&self) -> &[BuildingInstallationProperty]

Source§

fn building_rooms(&self) -> &[BuildingRoomProperty]

Source§

fn building_subdivisions(&self) -> &[AbstractBuildingSubdivisionProperty]

Source§

impl AsAbstractBuildingMut for Building

Source§

fn abstract_building_mut(&mut self) -> &mut AbstractBuilding

Source§

fn set_class(&mut self, class: BuildingClassValue)

Source§

fn set_class_opt(&mut self, class: Option<BuildingClassValue>)

Source§

fn clear_class(&mut self)

Source§

fn set_class_as<T>(&mut self, value: &T)
where T: CodeListValue,

Sets class, encoding it with T’s code list codeSpace.
Source§

fn functions_mut(&mut self) -> &mut [BuildingFunctionValue]

Source§

fn set_functions(&mut self, functions: Vec<BuildingFunctionValue>)

Source§

fn push_function(&mut self, function: BuildingFunctionValue)

Source§

fn extend_functions( &mut self, functions: impl IntoIterator<Item = BuildingFunctionValue>, )

Source§

fn push_function_as<T>(&mut self, value: &T)
where T: CodeListValue,

Appends a function, encoding it with T’s code list codeSpace.
Source§

fn usages_mut(&mut self) -> &mut [BuildingUsageValue]

Source§

fn set_usages(&mut self, usages: Vec<BuildingUsageValue>)

Source§

fn push_usage(&mut self, usage: BuildingUsageValue)

Source§

fn extend_usages( &mut self, usages: impl IntoIterator<Item = BuildingUsageValue>, )

Source§

fn push_usage_as<T>(&mut self, value: &T)
where T: CodeListValue,

Appends a usage, encoding it with T’s code list codeSpace.
Source§

fn set_roof_type(&mut self, roof_type: RoofTypeValue)

Source§

fn set_roof_type_opt(&mut self, roof_type: Option<RoofTypeValue>)

Source§

fn clear_roof_type(&mut self)

Source§

fn set_roof_type_as<T>(&mut self, value: &T)
where T: CodeListValue,

Sets roofType, encoding it with T’s code list codeSpace.
Source§

fn set_storeys_above_ground(&mut self, storeys_above_ground: i64)

Source§

fn set_storeys_above_ground_opt(&mut self, storeys_above_ground: Option<i64>)

Source§

fn clear_storeys_above_ground(&mut self)

Source§

fn set_storeys_below_ground(&mut self, storeys_below_ground: i64)

Source§

fn set_storeys_below_ground_opt(&mut self, storeys_below_ground: Option<i64>)

Source§

fn clear_storeys_below_ground(&mut self)

Source§

fn building_constructive_elements_mut( &mut self, ) -> &mut [BuildingConstructiveElementProperty]

Source§

fn set_building_constructive_elements( &mut self, building_constructive_elements: Vec<BuildingConstructiveElementProperty>, )

Source§

fn push_building_constructive_element( &mut self, element: BuildingConstructiveElementProperty, )

Source§

fn extend_building_constructive_elements( &mut self, elements: impl IntoIterator<Item = BuildingConstructiveElementProperty>, )

Source§

fn building_installations_mut(&mut self) -> &mut [BuildingInstallationProperty]

Source§

fn set_building_installations( &mut self, building_installations: Vec<BuildingInstallationProperty>, )

Source§

fn push_building_installation( &mut self, installation: BuildingInstallationProperty, )

Source§

fn extend_building_installations( &mut self, installations: impl IntoIterator<Item = BuildingInstallationProperty>, )

Source§

fn building_rooms_mut(&mut self) -> &mut [BuildingRoomProperty]

Source§

fn set_building_rooms(&mut self, building_rooms: Vec<BuildingRoomProperty>)

Source§

fn push_building_room(&mut self, room: BuildingRoomProperty)

Source§

fn extend_building_rooms( &mut self, rooms: impl IntoIterator<Item = BuildingRoomProperty>, )

Source§

fn building_subdivisions_mut( &mut self, ) -> &mut [AbstractBuildingSubdivisionProperty]

Source§

fn set_building_subdivisions( &mut self, building_subdivisions: Vec<AbstractBuildingSubdivisionProperty>, )

Source§

fn push_building_subdivision( &mut self, subdivision: AbstractBuildingSubdivisionProperty, )

Source§

fn extend_building_subdivisions( &mut self, subdivisions: impl IntoIterator<Item = AbstractBuildingSubdivisionProperty>, )

Source§

impl AsAbstractCityObject for Building

Source§

impl AsAbstractCityObjectMut for Building

Source§

fn abstract_city_object_mut(&mut self) -> &mut AbstractCityObject

Source§

fn set_relative_to_terrain(&mut self, value: Option<RelativeToTerrain>)

Source§

fn set_relative_to_water(&mut self, value: Option<RelativeToWater>)

Source§

fn external_references_mut(&mut self) -> &mut Vec<ExternalReference>

Source§

fn set_external_references( &mut self, external_references: Vec<ExternalReference>, )

Source§

fn push_external_reference(&mut self, external_reference: ExternalReference)

Source§

fn extend_external_references( &mut self, external_references: impl IntoIterator<Item = ExternalReference>, )

Source§

fn generic_attributes_mut(&mut self) -> &mut Vec<GenericAttributeKind>

Source§

fn set_generic_attributes( &mut self, generic_attributes: Vec<GenericAttributeKind>, )

Source§

fn push_generic_attribute(&mut self, generic_attribute: GenericAttributeKind)

Source§

fn extend_generic_attributes( &mut self, generic_attributes: impl IntoIterator<Item = GenericAttributeKind>, )

Source§

fn appearances_mut(&mut self) -> &mut Vec<AbstractAppearanceProperty>

Source§

fn set_appearances(&mut self, appearances: Vec<AbstractAppearanceProperty>)

Source§

fn push_appearance(&mut self, appearance: AbstractAppearanceProperty)

Source§

fn extend_appearances( &mut self, appearances: impl IntoIterator<Item = AbstractAppearanceProperty>, )

Source§

fn related_to_mut(&mut self) -> &mut Vec<CityObjectRelationProperty>

Source§

impl AsAbstractConstruction for Building

Source§

impl AsAbstractConstructionMut for Building

Source§

fn abstract_construction_mut(&mut self) -> &mut AbstractConstruction

Source§

fn set_date_of_construction(&mut self, date_of_construction: Option<NaiveDate>)

Source§

fn set_date_of_demolition(&mut self, date_of_demolition: Option<NaiveDate>)

Source§

fn occupancies_mut(&mut self) -> &mut Vec<Occupancy>

Source§

fn set_occupancies(&mut self, values: Vec<Occupancy>)

Source§

fn push_occupancy(&mut self, occupancy: Occupancy)

Source§

fn extend_occupancies( &mut self, occupancies: impl IntoIterator<Item = Occupancy>, )

Source§

impl AsAbstractFeature for Building

Source§

fn abstract_feature(&self) -> &AbstractFeature

Returns a reference to the embedded AbstractFeature base data.
Source§

fn bounded_by(&self) -> Option<&BoundingShape>

Source§

impl AsAbstractFeature for Building

Source§

impl AsAbstractFeatureMut for Building

Source§

fn abstract_feature_mut(&mut self) -> &mut AbstractFeature

Returns a mutable reference to the embedded AbstractFeature base data.
Source§

fn set_bounded_by(&mut self, bounded_by: Option<BoundingShape>)

Source§

fn bounded_by_mut(&mut self) -> &mut Option<BoundingShape>

Source§

fn set_bounding_shape_from_envelope(&mut self, envelope: Option<Envelope>)

Source§

impl AsAbstractFeatureMut for Building

Source§

impl AsAbstractFeatureWithLifespan for Building

Source§

impl AsAbstractFeatureWithLifespanMut for Building

Source§

impl AsAbstractGml for Building

Source§

fn abstract_gml(&self) -> &AbstractGml

Returns a reference to the embedded AbstractGml base data.
Source§

fn id(&self) -> Option<&Id>

Returns the optional identifier of this GML object.
Source§

fn names(&self) -> &[Code]

Returns the names of this GML object.
Source§

impl AsAbstractGmlMut for Building

Source§

fn abstract_gml_mut(&mut self) -> &mut AbstractGml

Returns a mutable reference to the embedded AbstractGml base data.
Source§

fn set_id(&mut self, id: Id)

Sets the identifier of this GML object.
Source§

fn set_id_opt(&mut self, id: Option<Id>)

Sets or clears the identifier of this GML object.
Source§

fn clear_id(&mut self)

Clears the identifier of this GML object.
Source§

fn set_names(&mut self, names: Vec<Code>)

Source§

fn push_name(&mut self, name: Code)

Source§

fn extend_names(&mut self, names: impl IntoIterator<Item = Code>)

Source§

impl AsAbstractObject for Building

Source§

impl AsAbstractObjectMut for Building

Source§

impl AsAbstractOccupiedSpace for Building

Source§

impl AsAbstractOccupiedSpaceMut for Building

Source§

impl AsAbstractPhysicalSpace for Building

Source§

impl AsAbstractPhysicalSpaceMut for Building

Source§

impl AsAbstractSpace for Building

Source§

impl AsAbstractSpaceMut for Building

Source§

fn abstract_space_mut(&mut self) -> &mut AbstractSpace

Source§

fn set_space_type(&mut self, value: Option<SpaceType>)

Source§

fn volumes_mut(&mut self) -> &mut Vec<QualifiedVolume>

Source§

fn set_volumes(&mut self, values: Vec<QualifiedVolume>)

Source§

fn push_volume(&mut self, volume: QualifiedVolume)

Source§

fn extend_volumes(&mut self, volumes: impl IntoIterator<Item = QualifiedVolume>)

Source§

fn areas_mut(&mut self) -> &mut Vec<QualifiedArea>

Source§

fn set_areas(&mut self, values: Vec<QualifiedArea>)

Source§

fn push_area(&mut self, area: QualifiedArea)

Source§

fn extend_areas(&mut self, areas: impl IntoIterator<Item = QualifiedArea>)

Source§

fn set_lod1_solid(&mut self, value: Option<SolidProperty>)

Source§

fn set_lod2_solid(&mut self, value: Option<SolidProperty>)

Source§

fn set_lod3_solid(&mut self, value: Option<SolidProperty>)

Source§

fn set_lod0_multi_surface(&mut self, value: Option<MultiSurfaceProperty>)

Source§

fn set_lod2_multi_surface(&mut self, value: Option<MultiSurfaceProperty>)

Source§

fn set_lod3_multi_surface(&mut self, value: Option<MultiSurfaceProperty>)

Source§

fn set_lod0_multi_curve(&mut self, value: Option<MultiCurveProperty>)

Source§

fn set_lod2_multi_curve(&mut self, value: Option<MultiCurveProperty>)

Source§

fn set_lod3_multi_curve(&mut self, value: Option<MultiCurveProperty>)

Source§

fn lod1_solid_mut(&mut self) -> Option<&mut SolidProperty>

Source§

fn lod2_solid_mut(&mut self) -> Option<&mut SolidProperty>

Source§

fn lod3_solid_mut(&mut self) -> Option<&mut SolidProperty>

Source§

fn lod0_multi_surface_mut(&mut self) -> Option<&mut MultiSurfaceProperty>

Source§

fn lod2_multi_surface_mut(&mut self) -> Option<&mut MultiSurfaceProperty>

Source§

fn lod3_multi_surface_mut(&mut self) -> Option<&mut MultiSurfaceProperty>

Source§

fn lod0_multi_curve_mut(&mut self) -> Option<&mut MultiCurveProperty>

Source§

fn lod2_multi_curve_mut(&mut self) -> Option<&mut MultiCurveProperty>

Source§

fn lod3_multi_curve_mut(&mut self) -> Option<&mut MultiCurveProperty>

Source§

fn boundaries_mut(&mut self) -> &mut Vec<AbstractSpaceBoundaryProperty>

Source§

fn set_boundaries(&mut self, values: Vec<AbstractSpaceBoundaryProperty>)

Source§

fn push_boundary(&mut self, boundary: AbstractSpaceBoundaryProperty)

Source§

fn extend_boundaries( &mut self, boundaries: impl IntoIterator<Item = AbstractSpaceBoundaryProperty>, )

Source§

impl Clone for Building

Source§

fn clone(&self) -> Building

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 ComputeEnvelope for Building

Source§

impl Debug for Building

Source§

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

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

impl ForEachFeatureMut for Building

Source§

impl<'a> From<&'a Building> for AbstractBuildingKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractBuildingKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractConstructionKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractConstructionKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractOccupiedSpaceKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractOccupiedSpaceKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractPhysicalSpaceKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractPhysicalSpaceKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractSpaceKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractSpaceKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractCityObjectKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractCityObjectKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractFeatureWithLifespanKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractFeatureWithLifespanKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Building> for AbstractFeatureKindRef<'a>

Source§

fn from(x: &'a Building) -> AbstractFeatureKindRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractBuildingKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractBuildingKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractConstructionKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractConstructionKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractOccupiedSpaceKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractOccupiedSpaceKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractPhysicalSpaceKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractPhysicalSpaceKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractSpaceKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractSpaceKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractCityObjectKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractCityObjectKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractFeatureWithLifespanKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractFeatureWithLifespanKindRefMut<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut Building> for AbstractFeatureKindRefMut<'a>

Source§

fn from(x: &'a mut Building) -> AbstractFeatureKindRefMut<'a>

Converts to this type from the input type.
Source§

impl From<Building> for AbstractBuildingKind

Source§

fn from(x: Building) -> AbstractBuildingKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractConstructionKind

Source§

fn from(x: Building) -> AbstractConstructionKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractOccupiedSpaceKind

Source§

fn from(x: Building) -> AbstractOccupiedSpaceKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractPhysicalSpaceKind

Source§

fn from(x: Building) -> AbstractPhysicalSpaceKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractSpaceKind

Source§

fn from(x: Building) -> AbstractSpaceKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractCityObjectKind

Source§

fn from(x: Building) -> AbstractCityObjectKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractFeatureWithLifespanKind

Source§

fn from(x: Building) -> AbstractFeatureWithLifespanKind

Converts to this type from the input type.
Source§

impl From<Building> for AbstractFeatureKind

Source§

fn from(x: Building) -> AbstractFeatureKind

Converts to this type from the input type.
Source§

impl HasFeatureType for Building

Source§

impl IterFeatures for Building

Source§

fn iter_features( &self, ) -> Box<dyn Iterator<Item = AbstractFeatureKindRef<'_>> + '_>

Source§

impl PartialEq for Building

Source§

fn eq(&self, other: &Building) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Building

Source§

impl TryFrom<AbstractBuildingKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractBuildingKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractBuildingKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractBuildingKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractBuildingKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from(x: AbstractBuildingKindRefMut<'a>) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractCityObjectKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractCityObjectKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractCityObjectKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractCityObjectKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractCityObjectKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from(x: AbstractCityObjectKindRefMut<'a>) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractConstructionKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractConstructionKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractConstructionKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractConstructionKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractConstructionKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from( x: AbstractConstructionKindRefMut<'a>, ) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractFeatureKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractFeatureKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractFeatureKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractFeatureKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractFeatureKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from(x: AbstractFeatureKindRefMut<'a>) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractFeatureWithLifespanKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractFeatureWithLifespanKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractFeatureWithLifespanKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from( x: AbstractFeatureWithLifespanKindRef<'a>, ) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractFeatureWithLifespanKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from( x: AbstractFeatureWithLifespanKindRefMut<'a>, ) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractOccupiedSpaceKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractOccupiedSpaceKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractOccupiedSpaceKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractOccupiedSpaceKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractOccupiedSpaceKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from( x: AbstractOccupiedSpaceKindRefMut<'a>, ) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractPhysicalSpaceKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractPhysicalSpaceKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractPhysicalSpaceKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractPhysicalSpaceKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractPhysicalSpaceKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from( x: AbstractPhysicalSpaceKindRefMut<'a>, ) -> Result<&'a mut Building, ()>

Performs the conversion.
Source§

impl TryFrom<AbstractSpaceKind> for Building

Source§

type Error = ()

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

fn try_from(x: AbstractSpaceKind) -> Result<Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractSpaceKindRef<'a>> for &'a Building

Source§

type Error = ()

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

fn try_from(x: AbstractSpaceKindRef<'a>) -> Result<&'a Building, ()>

Performs the conversion.
Source§

impl<'a> TryFrom<AbstractSpaceKindRefMut<'a>> for &'a mut Building

Source§

type Error = ()

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

fn try_from(x: AbstractSpaceKindRefMut<'a>) -> Result<&'a mut Building, ()>

Performs the conversion.

Auto Trait Implementations§

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
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> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> RecomputeBoundingShape for T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more