Enum GeometryBooleanOperator
#[non_exhaustive]pub enum GeometryBooleanOperator {
Union,
Intersection,
Difference,
SymmetricDifference,
}Expand description
Regularized boolean set operation on solids.
The operand set matches axiolid-overlay’s planar contract so 2D and 3D
booleans describe the same algebra. It is deliberately not a mirror of any
one backend’s operation enum: SymmetricDifference exists here because the
set algebra has it, not because a provider offered it.
Marked #[non_exhaustive] so a future operand cannot break downstream
match arms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Union
Points in either operand.
Intersection
Points in both operands.
Difference
Ordered: points in the subject and not in the tool.
SymmetricDifference
Points in exactly one operand, equal to (A ∪ B) \ (A ∩ B).
Implementations§
§impl BooleanOperator
impl BooleanOperator
pub const ALL: [BooleanOperator; 4]
pub const ALL: [BooleanOperator; 4]
Every operand in a stable, declared order.
Conformance suites iterate this so a new operand is automatically covered rather than silently untested.
pub const fn is_commutative(self) -> bool
pub const fn is_commutative(self) -> bool
Whether swapping the operands leaves the result unchanged.
Difference is the only ordered operand; the identity is part of the
public contract because callers rely on it to reorder work.
Trait Implementations§
§impl Clone for BooleanOperator
impl Clone for BooleanOperator
§fn clone(&self) -> BooleanOperator
fn clone(&self) -> BooleanOperator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BooleanOperator
§impl Debug for BooleanOperator
impl Debug for BooleanOperator
§impl<'de> Deserialize<'de> for BooleanOperator
impl<'de> Deserialize<'de> for BooleanOperator
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BooleanOperator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BooleanOperator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for BooleanOperator
Source§impl From<IfcBooleanOperator> for BooleanOperator
Available on crate feature lowering only.
impl From<IfcBooleanOperator> for BooleanOperator
lowering only.