skia_safe::region

Trait Combine

Source
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§

Source

fn combine(a: &A, op: RegionOp, b: &B) -> Self

Provided Methods§

Source

fn difference(a: &A, b: &B) -> Self

Source

fn intersect(a: &A, b: &B) -> Self

Source

fn xor(a: &A, b: &B) -> Self

Source

fn union(a: &A, b: &B) -> Self

Source

fn reverse_difference(a: &A, b: &B) -> Self

Source

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.

Implementors§

Source§

impl Combine<Handle<SkRegion>, Handle<SkRegion>> for Handle<SkRegion>

Source§

impl Combine<Handle<SkRegion>, IRect> for Handle<SkRegion>

Source§

impl Combine<IRect, Handle<SkRegion>> for Handle<SkRegion>