arch-pkg-text 0.10.0

Pure Rust library to parse Arch Linux packages' structured text formats
Documentation
1
2
3
4
5
6
7
8
9
/// Types that implement this trait can parse its content into an array.
pub trait ParseArray {
    /// Type of array when parsing succeeds.
    type Array;
    /// Type of error when parsing fails.
    type Error;
    /// Parse an array.
    fn parse_array(&self) -> Result<Self::Array, Self::Error>;
}