highlights 0.2.0

Convert kindle highlights into different formats
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Various input formats to read highlights from.
use std::error::Error;
use std::io::Read;

use crate::highlights::Book;

pub mod bookcision;

/// Read highlights from input sources.
///
/// Each read object is guaranteed to be convertable to book highlights.
pub trait HighlightsRead: Into<Book> {
    /// Creates highlights from the input source.
    fn from_reader<R>(reader: &mut R) -> Result<Self, Box<dyn Error>>
    where
        R: Read;
}