pub struct FloCurvesOffset { /* private fields */ }Expand description
A path offsetter that uses the flo_curves library.
This struct encapsulates the logic for offsetting a path using the algorithms
provided by the flo_curves library.
Implementations§
Trait Implementations§
Source§impl Offset for FloCurvesOffset
impl Offset for FloCurvesOffset
Source§fn offset_path(&self) -> Result<Path>
fn offset_path(&self) -> Result<Path>
Offsets the path using the flo_curves library.
This method takes the curves generated during the creation of the FloCurvesOffset instance,
samples them, fits a new curve to the sampled points, and then cleans the resulting path
to produce the final offset path.
§Returns
A Result containing the offset Path or an error if the offsetting process fails.
Auto Trait Implementations§
impl Freeze for FloCurvesOffset
impl RefUnwindSafe for FloCurvesOffset
impl Send for FloCurvesOffset
impl Sync for FloCurvesOffset
impl Unpin for FloCurvesOffset
impl UnsafeUnpin for FloCurvesOffset
impl UnwindSafe for FloCurvesOffset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more