Skip to content

Commit

Permalink
Update documentation of update operations
Browse files Browse the repository at this point in the history
The old versions were no longer correct, due to the changes to the
`Handles` API.
  • Loading branch information
hannobraun committed Nov 7, 2023
1 parent daa6cc9 commit 26b8f87
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
9 changes: 4 additions & 5 deletions crates/fj-core/src/operations/update/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ pub trait UpdateCycle {
///
/// # Panics
///
/// Uses [`Handles::replace`] internally, and panics for the same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace`]: crate::objects::Handles::replace
/// Panics, if the update results in a duplicate object.
#[must_use]
fn update_half_edge(
&self,
Expand All @@ -33,10 +33,9 @@ pub trait UpdateCycle {
///
/// # Panics
///
/// Uses [`Handles::replace_with_multiple`] internally, and panics for the
/// same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace_with_multiple`]: crate::objects::Handles::replace_with_multiple
/// Panics, if the update results in a duplicate object.
#[must_use]
fn replace_half_edge<const N: usize>(
&self,
Expand Down
9 changes: 4 additions & 5 deletions crates/fj-core/src/operations/update/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pub trait UpdateRegion {
///
/// # Panics
///
/// Uses [`Handles::replace`] internally, and panics for the same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace`]: crate::objects::Handles::replace
/// Panics, if the update results in a duplicate object.
#[must_use]
fn update_interior(
&self,
Expand All @@ -40,10 +40,9 @@ pub trait UpdateRegion {
///
/// # Panics
///
/// Uses [`Handles::replace_with_multiple`] internally, and panics for the
/// same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace_with_multiple`]: crate::objects::Handles::replace_with_multiple
/// Panics, if the update results in a duplicate object.
#[must_use]
fn replace_interior<const N: usize>(
&self,
Expand Down
9 changes: 4 additions & 5 deletions crates/fj-core/src/operations/update/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ pub trait UpdateShell {
///
/// # Panics
///
/// Uses [`Handles::replace`] internally, and panics for the same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace`]: crate::objects::Handles::replace
/// Panics, if the update results in a duplicate object.
#[must_use]
fn update_face(
&self,
Expand All @@ -30,10 +30,9 @@ pub trait UpdateShell {
///
/// # Panics
///
/// Uses [`Handles::replace_with_multiple`] internally, and panics for the
/// same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace_with_multiple`]: crate::objects::Handles::replace_with_multiple
/// Panics, if the update results in a duplicate object.
#[must_use]
fn replace_face<const N: usize>(
&self,
Expand Down
9 changes: 4 additions & 5 deletions crates/fj-core/src/operations/update/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ pub trait UpdateSketch {
///
/// # Panics
///
/// Uses [`Handles::replace`] internally, and panics for the same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace`]: crate::objects::Handles::replace
/// Panics, if the update results in a duplicate object.
#[must_use]
fn update_region(
&self,
Expand All @@ -30,10 +30,9 @@ pub trait UpdateSketch {
///
/// # Panics
///
/// Uses [`Handles::replace_with_multiple`] internally, and panics for the
/// same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace_with_multiple`]: crate::objects::Handles::replace_with_multiple
/// Panics, if the update results in a duplicate object.
#[must_use]
fn replace_region<const N: usize>(
&self,
Expand Down
9 changes: 4 additions & 5 deletions crates/fj-core/src/operations/update/solid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ pub trait UpdateSolid {
///
/// # Panics
///
/// Uses [`Handles::replace`] internally, and panics for the same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace`]: crate::objects::Handles::replace
/// Panics, if the update results in a duplicate object.
#[must_use]
fn update_shell(
&self,
Expand All @@ -33,10 +33,9 @@ pub trait UpdateSolid {
///
/// # Panics
///
/// Uses [`Handles::replace_with_multiple`] internally, and panics for the
/// same reasons.
/// Panics, if the object can't be found.
///
/// [`Handles::replace_with_multiple`]: crate::objects::Handles::replace_with_multiple
/// Panics, if the update results in a duplicate object.
#[must_use]
fn replace_shell<const N: usize>(
&self,
Expand Down

0 comments on commit 26b8f87

Please sign in to comment.