UpdateRegion

Trait UpdateRegion 

Source
pub trait UpdateRegion {
    // Required methods
    fn update_exterior<T>(
        &self,
        update: impl FnOnce(&Handle<Cycle>, &mut Core) -> T,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<Cycle>>;
    fn add_interiors<T>(
        &self,
        interiors: impl IntoIterator<Item = T>,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<Cycle>>;
    fn update_interior<T, R>(
        &self,
        handle: &Handle<Cycle>,
        update: impl FnOnce(&Handle<Cycle>, &mut Core) -> R,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<Cycle>>,
             R: IntoIterator<Item = T>;
}
Expand description

Update a Region

Required Methods§

Source

fn update_exterior<T>( &self, update: impl FnOnce(&Handle<Cycle>, &mut Core) -> T, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<Cycle>>,

Update the exterior of the region

Source

fn add_interiors<T>( &self, interiors: impl IntoIterator<Item = T>, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<Cycle>>,

Add the provided interiors to the region

Source

fn update_interior<T, R>( &self, handle: &Handle<Cycle>, update: impl FnOnce(&Handle<Cycle>, &mut Core) -> R, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<Cycle>>, R: IntoIterator<Item = T>,

Update an interior cycle of the region

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