Method
remove_child
(
&mut self,
child: TableId<T>,
parent: TableId<U>,
)
Source from the content-addressed store, hash-verified
| 5207 | } |
| 5208 | |
| 5209 | pub fn remove_child<T: 'static, U: 'static>( |
| 5210 | &mut self, |
| 5211 | child: TableId<T>, |
| 5212 | parent: TableId<U>, |
| 5213 | ) -> Result<(), ResourceTableError> { |
| 5214 | self.table |
| 5215 | .get_mut() |
| 5216 | .remove_child(Resource::from(child), Resource::from(parent)) |
| 5217 | } |
| 5218 | |
| 5219 | fn delete<V: 'static>(&mut self, id: TableId<V>) -> Result<V, ResourceTableError> { |
| 5220 | self.table.get_mut().delete(Resource::from(id)) |
Tested by
no test coverage detected