pub struct PartContinuant {
pub part_id: String,
pub signature: MaterialSignature,
pub facet: SignatureFacet,
pub reading: Option<SpectrumReading>,
}Expand description
A part continuant with its own material signature and the facet in use.
The whole object does not own this signature. Optical and acoustic facets read the EMF spectrum axis; binding a part does not bake a frame.
Fields§
§part_id: StringContinuant id of the part (not the whole object).
signature: MaterialSignatureSignature attached to this part.
facet: SignatureFacetFacet slot in use (mechanical, thermal, optical, acoustic, chemical).
reading: Option<SpectrumReading>Which spectrum reading, when the facet is optical (colour) or acoustic (sound).
Absent for mechanical, thermal, and chemical. Never a single hidden “spectrum” facet.
Implementations§
Source§impl PartContinuant
impl PartContinuant
Sourcepub fn bind(
part_id: &str,
signature: &str,
facet: &str,
) -> Result<Self, PartBindError>
pub fn bind( part_id: &str, signature: &str, facet: &str, ) -> Result<Self, PartBindError>
Bind part to a catalog signature and select one facet.
Optical names the colour reading. Acoustic names the sound reading.
Sourcepub fn bind_with(
part_id: &str,
signature: &str,
facet: Option<&str>,
reading: Option<&str>,
) -> Result<Self, PartBindError>
pub fn bind_with( part_id: &str, signature: &str, facet: Option<&str>, reading: Option<&str>, ) -> Result<Self, PartBindError>
Bind part + signature plus a facet and/or a colour|sound reading.
Shared words for Poet and every Qualia app. A colour or sound reading selects the optical or acoustic slot of the one EMF spectrum axis.
Sourcepub fn with_stress(self, stress: f64) -> Self
pub fn with_stress(self, stress: f64) -> Self
Apply a spectrum-stress reading. Spatial coordinates are untouched.