ps-hkey 0.1.0-34

This crate defines the hashkey format and provides methods for resolving them
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use ps_datachunk::DataChunk;
use ps_promise::PromiseRejection;

use crate::{long::LongHkeyExpanded, AsyncStore, Hkey, HkeyError};

impl LongHkeyExpanded {
    /// transforms this [`LongHkey`] into a [`Hkey::ListRef`]
    pub async fn shrink_async<C, E, S>(&self, store: &S) -> Result<Hkey, E>
    where
        C: DataChunk + Send + Unpin,
        E: From<HkeyError> + PromiseRejection + Send,
        S: AsyncStore<Chunk = C, Error = E> + Sync,
    {
        Ok(self.store_async(store).await?.into())
    }
}