Skip to main content

Cut

Trait Cut 

Source
pub trait Cut<Rhs = Self> {
    type Out;

    // Required method
    fn cut(&mut self, rhs: &Rhs) -> Self::Out;
}

Required Associated Types§

Required Methods§

Source

fn cut(&mut self, rhs: &Rhs) -> Self::Out

Returns the intersection between self and rhs while removing the intersection from self

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Cut for Splinter

Source§

impl<B: Deref<Target = [u8]>> Cut<CowSplinter<B>> for Splinter

Source§

impl<B: Deref<Target = [u8]>> Cut<SplinterRef<B>> for Splinter