pub enum PaletteAbsence {
Malformed,
Retopologized,
Unproven,
StyleOverride,
SupersededByTexture,
FixedDisplayColour,
}Expand description
Why a body that reached a palette carries no binding.
Variants§
Malformed
The resolver repaired the map (shifted colour rows or clamped indices); the displayed colours are not the source’s.
Retopologized
The body’s triangles are not the face set’s CoordIndex rows one for
one: the triangle count no longer matches ColourIndex (a cut, or the
mesher dropped a triangle naming a missing point), or the face set is
polygonal (ColourIndex is per face; a face triangulates to several
triangles or none). A display split may still have happened by
triangle index; it is not a source binding.
Unproven
The triangle count matches ColourIndex, but the body went through a
Boolean void cut or a material-layer slice (either can keep the
count), is merged from several items, or its face set could not be
read: nothing proves triangle i is CoordIndex row i.
StyleOverride
A single-entry map whose colour is not the colour displayed: another style took precedence.
SupersededByTexture
A valid surface texture took precedence over the palette.
FixedDisplayColour
The element’s class has a fixed display colour (openings).
Trait Implementations§
Source§impl Clone for PaletteAbsence
impl Clone for PaletteAbsence
Source§fn clone(&self) -> PaletteAbsence
fn clone(&self) -> PaletteAbsence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PaletteAbsence
impl Debug for PaletteAbsence
Source§impl PartialEq for PaletteAbsence
impl PartialEq for PaletteAbsence
impl Copy for PaletteAbsence
impl Eq for PaletteAbsence
impl StructuralPartialEq for PaletteAbsence
Auto Trait Implementations§
impl Freeze for PaletteAbsence
impl RefUnwindSafe for PaletteAbsence
impl Send for PaletteAbsence
impl Sync for PaletteAbsence
impl Unpin for PaletteAbsence
impl UnwindSafe for PaletteAbsence
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.