Add channel notes view

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Mikayla 2023-08-22 14:18:32 -07:00
parent 5a0315c4d5
commit 4eff8ad186
No known key found for this signature in database
9 changed files with 150 additions and 14 deletions

View file

@ -4687,12 +4687,13 @@ impl AnyWeakModelHandle {
}
}
#[derive(Copy)]
pub struct WeakViewHandle<T> {
any_handle: AnyWeakViewHandle,
view_type: PhantomData<T>,
}
impl<T> Copy for WeakViewHandle<T> {}
impl<T> Debug for WeakViewHandle<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct(&format!("WeakViewHandle<{}>", type_name::<T>()))