path_offset/path/conversions/lyon.rs
1//! Provides conversions from `lyon::path::Path`.
2//!
3//! This module facilitates the direct use of `lyon` paths within this crate
4//! by providing a `From` implementation.
5
6use lyon::path::Path;
7
8/// Converts a `lyon::path::Path` into this crate's [`Path`](crate::path::Path) type.
9///
10/// Since `crate::path::Path` is a wrapper around `lyon::path::Path`, this is a
11/// straightforward conversion.
12impl From<Path> for crate::path::Path {
13 fn from(value: Path) -> Self {
14 Self { inner: value }
15 }
16}