From 5beba47cc4c6a40d827924fd005988c4eed410ff Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Fri, 1 Nov 2024 13:45:37 +0100 Subject: [PATCH] Make HasScipPtr public --- src/model.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/model.rs b/src/model.rs index 1136d9d..c3a8206 100644 --- a/src/model.rs +++ b/src/model.rs @@ -1155,10 +1155,12 @@ macro_rules! impl_WithSolvingStats { impl_WithSolvingStats!(for Model, ModelSolving, Model); -pub(crate) trait HasScipPtr { - fn scip(&self) -> Rc; // Returns a pointer to the underlying SCIP instance. +/// A trait for optimization models with any state that hold a pointer to the underlying SCIP instance. +pub trait HasScipPtr { + /// Returns a reference-counted pointer to the underlying SCIP instance. + fn scip(&self) -> Rc; - // Returns a pointer to the underlying SCIP instance. + /// Returns a pointer to the underlying SCIP instance. /// /// # Safety ///