pub trait Sweep: Sized {
type Swept;
// Required method
fn sweep_with_cache(
self,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
services: &mut Services,
) -> Self::Swept;
// Provided method
fn sweep(
self,
path: impl Into<Vector<3>>,
services: &mut Services,
) -> Self::Swept { ... }
}Expand description
Sweep an object along a path to create another object
Required Associated Types§
Required Methods§
Sourcefn sweep_with_cache(
self,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
services: &mut Services,
) -> Self::Swept
fn sweep_with_cache( self, path: impl Into<Vector<3>>, cache: &mut SweepCache, services: &mut Services, ) -> Self::Swept
Sweep the object along the given path, using the provided cache
Provided Methods§
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.