Update trait name

This commit is contained in:
Hanno Braun 2022-03-16 15:37:57 +01:00
parent 37402d5f4e
commit 302b1e3540
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ mod syntax;
pub mod prelude { pub mod prelude {
pub use crate::syntax::{ pub use crate::syntax::{
Rotate as _, Sketch as _, Sweep as _, Translate as _, Union as _, Group as _, Rotate as _, Sketch as _, Sweep as _, Translate as _,
}; };
} }

View File

@ -70,13 +70,13 @@ where
} }
} }
pub trait Union { pub trait Group {
fn group<Other>(&self, other: &Other) -> crate::Group fn group<Other>(&self, other: &Other) -> crate::Group
where where
Other: Clone + Into<crate::Shape3d>; Other: Clone + Into<crate::Shape3d>;
} }
impl<T> Union for T impl<T> Group for T
where where
T: Clone + Into<crate::Shape3d>, T: Clone + Into<crate::Shape3d>,
{ {