#[non_exhaustive]pub enum BoundsSource {
Exact,
Tessellated,
}Expand description
How a product’s bounds were obtained.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact
Read off the exact lowered geometry without tessellating: every leaf was a mesh, an authored bounding box, a polygonal extrusion or a block, bounded from its vertices, so the box is the shape’s.
Tessellated
Taken from the compiled mesh. Exact for planar geometry; for curved geometry the mesh’s vertices lie on the surface and chords cut inside it, so the box can fall short of the true surface by up to the compile tolerance.
Trait Implementations§
Source§impl Clone for BoundsSource
impl Clone for BoundsSource
Source§fn clone(&self) -> BoundsSource
fn clone(&self) -> BoundsSource
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 moreimpl Copy for BoundsSource
Source§impl Debug for BoundsSource
impl Debug for BoundsSource
impl Eq for BoundsSource
Source§impl PartialEq for BoundsSource
impl PartialEq for BoundsSource
impl StructuralPartialEq for BoundsSource
Auto Trait Implementations§
impl Freeze for BoundsSource
impl RefUnwindSafe for BoundsSource
impl Send for BoundsSource
impl Sync for BoundsSource
impl Unpin for BoundsSource
impl UnsafeUnpin for BoundsSource
impl UnwindSafe for BoundsSource
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