mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Implement Operation
for Handle
This commit is contained in:
parent
5e623cee1e
commit
c0944fd72c
@ -95,6 +95,20 @@ impl<T> fmt::Debug for Handle<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Operation for Handle<T> {
|
||||
fn display(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.inner.display(f)
|
||||
}
|
||||
|
||||
fn tri_mesh(&self) -> TriMesh {
|
||||
self.inner.tri_mesh()
|
||||
}
|
||||
|
||||
fn children(&self) -> Vec<HandleAny> {
|
||||
self.inner.children()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HandleAny {
|
||||
inner: Rc<dyn Operation>,
|
||||
|
Loading…
Reference in New Issue
Block a user