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§
Sourcefn update_exterior<T>(
&self,
update: impl FnOnce(&Handle<Cycle>, &mut Core) -> T,
core: &mut Core,
) -> Self
fn update_exterior<T>( &self, update: impl FnOnce(&Handle<Cycle>, &mut Core) -> T, core: &mut Core, ) -> Self
Update the exterior of the region
Sourcefn add_interiors<T>(
&self,
interiors: impl IntoIterator<Item = T>,
core: &mut Core,
) -> Self
fn add_interiors<T>( &self, interiors: impl IntoIterator<Item = T>, core: &mut Core, ) -> Self
Add the provided interiors to the region
Sourcefn update_interior<T, R>(
&self,
handle: &Handle<Cycle>,
update: impl FnOnce(&Handle<Cycle>, &mut Core) -> R,
core: &mut Core,
) -> Self
fn update_interior<T, R>( &self, handle: &Handle<Cycle>, update: impl FnOnce(&Handle<Cycle>, &mut Core) -> R, core: &mut Core, ) -> Self
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.