1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::Primitive; use std::sync::Arc; #[derive(Debug)] pub struct Geometry(Arc<Primitive>); impl Geometry { pub(crate) fn from_primitive(primitive: Arc<Primitive>) -> Self { Self(primitive) } pub(crate) fn into_primitive(self) -> Arc<Primitive> { self.0 } }