lt-fm-index 0.7.1

FM-index using k-mer lookup table for exact pattern matching
1
2
3
4
5
6
7
8
9
10
use std::pin::Pin;
use std::future::Future;

pub trait AsyncSerialize {
    fn async_save_to<W>(&self, writer: Pin<&mut W>) -> impl Future<Output = Result<(), std::io::Error>> + Send where
        W: tokio::io::AsyncWrite + Send;
    fn async_load_from<R>(reader: Pin<&mut R>) -> impl Future<Output = Result<Self, std::io::Error>> + Send where
        R: tokio::io::AsyncRead + Send,
        Self: Sized;
}