This commit is contained in:
Antonio Scandurra 2023-10-30 16:54:55 +01:00
parent 89bcbe3eeb
commit b9ce186d21
2 changed files with 10 additions and 3 deletions

View File

@ -57,6 +57,13 @@ impl<V: 'static> View<V> {
{
cx.update_view(self, f)
}
pub fn read<C>(&self, cx: &mut C) -> &V
where
C: VisualContext,
{
todo!()
}
}
impl<V> Clone for View<V> {

View File

@ -159,9 +159,9 @@ pub trait Item: EventEmitter + Sized {
// ) -> Task<Result<()>> {
// unimplemented!("reload() must be implemented if can_save() returns true")
// }
// fn to_item_events(_event: &Self::Event) -> SmallVec<[ItemEvent; 2]> {
// SmallVec::new()
// }
fn to_item_events(_event: &Self::Event) -> SmallVec<[ItemEvent; 2]> {
SmallVec::new()
}
// fn should_close_item_on_event(_: &Self::Event) -> bool {
// false
// }