mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
WIP
This commit is contained in:
parent
89bcbe3eeb
commit
b9ce186d21
@ -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> {
|
||||
|
@ -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
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user