Restore alphabetic ordering in syntax module

This makes things easier to find.
This commit is contained in:
Hanno Braun 2022-03-17 13:46:18 +01:00
parent 4903c06817
commit d7bb3a5765

View File

@ -1,3 +1,24 @@
pub trait Group {
fn group<Other>(&self, other: &Other) -> crate::Group
where
Other: Clone + Into<crate::Shape3d>;
}
impl<T> Group for T
where
T: Clone + Into<crate::Shape3d>,
{
fn group<Other>(&self, other: &Other) -> crate::Group
where
Other: Clone + Into<crate::Shape3d>,
{
let a = self.clone().into();
let b = other.clone().into();
crate::Group { a, b }
}
}
pub trait Rotate {
/// Create a rotation
///
@ -69,24 +90,3 @@ where
}
}
}
pub trait Group {
fn group<Other>(&self, other: &Other) -> crate::Group
where
Other: Clone + Into<crate::Shape3d>;
}
impl<T> Group for T
where
T: Clone + Into<crate::Shape3d>,
{
fn group<Other>(&self, other: &Other) -> crate::Group
where
Other: Clone + Into<crate::Shape3d>,
{
let a = self.clone().into();
let b = other.clone().into();
crate::Group { a, b }
}
}