pub struct BodyAppearance {
pub body: Option<ImportedColor>,
pub faces: Vec<Option<ImportedColor>>,
}Expand description
One imported body’s appearance: an optional body-wide colour plus an optional colour per FACE.
faces is POSITIONAL and parallel to the body’s faces in shell/face order —
the same walk feature_pipeline::features::import3d::stamp_imported_names
uses — so index i is the i-th face of solid.shells.iter().flat_map(faces).
It is either empty (nothing read) or exactly as long as that face count; a
producer that cannot guarantee the pairing must leave it EMPTY rather than
emit a shorter or speculative list.
Fields§
§body: Option<ImportedColor>The whole body’s colour, when the file styled the solid itself.
faces: Vec<Option<ImportedColor>>Per-face colour in shell/face order, or empty when none was read.
Implementations§
Trait Implementations§
Source§impl Clone for BodyAppearance
impl Clone for BodyAppearance
Source§fn clone(&self) -> BodyAppearance
fn clone(&self) -> BodyAppearance
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 moreSource§impl Debug for BodyAppearance
impl Debug for BodyAppearance
Source§impl Default for BodyAppearance
impl Default for BodyAppearance
Source§fn default() -> BodyAppearance
fn default() -> BodyAppearance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BodyAppearance
impl<'de> Deserialize<'de> for BodyAppearance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BodyAppearance
impl PartialEq for BodyAppearance
Source§impl Serialize for BodyAppearance
impl Serialize for BodyAppearance
impl StructuralPartialEq for BodyAppearance
Auto Trait Implementations§
impl Freeze for BodyAppearance
impl RefUnwindSafe for BodyAppearance
impl Send for BodyAppearance
impl Sync for BodyAppearance
impl Unpin for BodyAppearance
impl UnsafeUnpin for BodyAppearance
impl UnwindSafe for BodyAppearance
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