pub trait SetOperation<T>: Sized {
// Required method
fn extend_collection<C>(self, output: &mut C)
where C: Collection<T>;
// Provided method
fn into_set_buf(self) -> SetBuf<T>
where T: Clone { ... }
}
Expand description
Represent a type that can produce a set operation on multiple Set
s.
Required Methods§
Sourcefn extend_collection<C>(self, output: &mut C)where
C: Collection<T>,
fn extend_collection<C>(self, output: &mut C)where
C: Collection<T>,
Extend a Collection
with the values of the Set
s using this set operation.
Provided Methods§
Sourcefn into_set_buf(self) -> SetBuf<T>where
T: Clone,
fn into_set_buf(self) -> SetBuf<T>where
T: Clone,
Create a SetBuf
using the SetOperation::extend_collection
method.
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.