pub fn get<K: AsRef<[u8]>>(
        &self,
        key: K,
    ) -> io::Result<Option<InlineArray>> {
        self.check_error()?;

        let key_ref = key.as_ref();

        let leaf_guard = self.leaf_for_key(key_ref)?;

        let leaf = leaf_guard.leaf_read.leaf.as_ref().unwrap();

        if let Some(ref hi) = leaf.hi {
            assert!(&**hi > key_ref);
        }

        Ok(leaf.get(key_ref).cloned())
    }
Retrieve a value from the `Tree` if it exists.

# Examples

```
# fn main() -> Result<(), Box<dyn std::error::Error>> {
# let config = sled::Config::tmp().unwrap();
# let db: sled::Db<1024> = config.open()?;
db.insert(&[0], vec![0])?;
assert_eq!(db.get(&[0]).unwrap(), Some(sled::InlineArray::from(vec![0])));
assert!(db.get(&[1]).unwrap().is_none());
# Ok(()) }
```
src/tree.rs