micropdf 0.16.0

A pure Rust PDF library - A pure Rust PDF library with fz_/pdf_ API compatibility
//! Path — compatibility shim.
//!
//! Re-exports from `crate::micropdf::path`.

pub use crate::micropdf::path::{
    MpLineCap as LineCap, MpLineJoin as LineJoin, MpPath as Path, MpPathElement as PathElement,
    MpStrokeState as StrokeState,
};

#[cfg(test)]
mod tests {
    use super::*;
    use crate::fitz::geometry::Point;

    #[test]
    fn test_shim_reexport() {
        let mut path = Path::new();
        path.move_to(Point::new(0.0, 0.0));
        path.line_to(Point::new(10.0, 10.0));
        assert_eq!(path.len(), 2);
    }
}