pub trait Combine<A, B>: Sized {
// Required method
fn combine(a: &A, op: RegionOp, b: &B) -> Self;
// Provided methods
fn difference(a: &A, b: &B) -> Self { ... }
fn intersect(a: &A, b: &B) -> Self { ... }
fn xor(a: &A, b: &B) -> Self { ... }
fn union(a: &A, b: &B) -> Self { ... }
fn reverse_difference(a: &A, b: &B) -> Self { ... }
fn replace(a: &A, b: &B) -> Self { ... }
}
Required Methods§
Provided Methods§
fn difference(a: &A, b: &B) -> Self
fn intersect(a: &A, b: &B) -> Self
fn xor(a: &A, b: &B) -> Self
fn union(a: &A, b: &B) -> Self
fn reverse_difference(a: &A, b: &B) -> Self
fn replace(a: &A, b: &B) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.