From 24d10c7f54b9d270373097e0c1047f9a29c3ae36 Mon Sep 17 00:00:00 2001 From: timofey Date: Fri, 30 Jun 2023 18:44:00 +0000 Subject: [PATCH] `PointFactory::inner` --- src/rstd/point.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rstd/point.rs b/src/rstd/point.rs index f8a8ed6..89e92d1 100644 --- a/src/rstd/point.rs +++ b/src/rstd/point.rs @@ -33,6 +33,12 @@ pub struct PointFactory { factory: F, } +impl PointFactory { + pub fn inner(&self) -> F { + self.factory.clone() + } +} + #[derive(Debug)] pub enum PointParseError { WrongLength(usize),