mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-26 00:55:50 +00:00
Restore alphabetic ordering in syntax
module
This makes things easier to find.
This commit is contained in:
parent
4903c06817
commit
d7bb3a5765
@ -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 {
|
pub trait Rotate {
|
||||||
/// Create a rotation
|
/// 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 }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user