path-offset 0.1.1

A simple library for offsetting paths
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Provides conversions from `lyon::path::Path`.
//!
//! This module facilitates the direct use of `lyon` paths within this crate
//! by providing a `From` implementation.

use lyon::path::Path;

/// Converts a `lyon::path::Path` into this crate's [`Path`](crate::path::Path) type.
///
/// Since `crate::path::Path` is a wrapper around `lyon::path::Path`, this is a
/// straightforward conversion.
impl From<Path> for crate::path::Path {
    fn from(value: Path) -> Self {
        Self { inner: value }
    }
}