# Zed2 entities \(\#3189\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/88875fd0062e46afe4a42ba474dbff3cd237f2b2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 88875fd0062e46afe4a42ba474dbff3cd237f2b2

Requested commit: 88875fd0062e46afe4a42ba474dbff3cd237f2b2

Commit: 88875fd0062e46afe4a42ba474dbff3cd237f2b2

Tree: 5e350f0459c7db959f576702f3400fb579e7a649

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Zed2 entities (#3189)

Adds an `Entity` trait for abstracting over `View`s and `Model`s, and
implements it for the `subscribe()` and `observe()` APIs.

The last commit also includes a fun experiment I added, using the
`Result` type to return the owned model handles back to the caller in
the case of downcast failure, inspired by the `binary_search*` methods.
```

## Parents

- [c98a811c0bd5a30ebb91e6a4425b0e89f25381d0](https://git.cafe/gitcafe/zed/commit/c98a811c0bd5a30ebb91e6a4425b0e89f25381d0?format=markdown)

- [f5b13071f17c075ac38c4efcf8f0ca18636bb13c](https://git.cafe/gitcafe/zed/commit/f5b13071f17c075ac38c4efcf8f0ca18636bb13c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/88875fd0062e46afe4a42ba474dbff3cd237f2b2?format=markdown)
