pub trait UpdateSolid {
// Required methods
fn add_shells<T>(
&self,
shells: impl IntoIterator<Item = T>,
core: &mut Core,
) -> Self
where T: Insert<Inserted = Handle<Shell>>;
fn update_shell<T, R>(
&self,
handle: &Handle<Shell>,
update: impl FnOnce(&Handle<Shell>, &mut Core) -> R,
core: &mut Core,
) -> Self
where T: Insert<Inserted = Handle<Shell>>,
R: IntoIterator<Item = T>;
}Expand description
Update a Solid
Required Methods§
Sourcefn add_shells<T>(
&self,
shells: impl IntoIterator<Item = T>,
core: &mut Core,
) -> Self
fn add_shells<T>( &self, shells: impl IntoIterator<Item = T>, core: &mut Core, ) -> Self
Add a shell to the solid
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.