UpdateSolid

Trait UpdateSolid 

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

Source

fn add_shells<T>( &self, shells: impl IntoIterator<Item = T>, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<Shell>>,

Add a shell to the solid

Source

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>,

Update a shell of the solid

§Panics

Panics, if the object can’t be found.

Panics, if the update results in multiple handles referencing the same object.

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§