From 4ee4fcd4d9d95a395a5a20df7843795770c6cabe Mon Sep 17 00:00:00 2001 From: Budi Syahiddin Date: Tue, 10 Jan 2023 21:02:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Updated=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 4 ++++ src/quickunion.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 5173805..e04f58f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -183,6 +183,7 @@ where /// This trait represents the kind of containers that is required for a particular algorithm to function #[cfg(feature="traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "traits")))] pub trait AlgorithmContainer { /// Any kind of contiguous container /// @@ -202,6 +203,7 @@ pub trait AlgorithmContainer { /// Union operation #[cfg(feature="traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "traits")))] pub trait Union where T: VertexType, @@ -216,6 +218,7 @@ where /// Find operation #[cfg(feature="traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "traits")))] pub trait Find where T: VertexType, @@ -225,6 +228,7 @@ where /// Connected operation #[cfg(feature="traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "traits")))] pub trait Connected where T: VertexType, diff --git a/src/quickunion.rs b/src/quickunion.rs index 1c9dabc..b52aace 100644 --- a/src/quickunion.rs +++ b/src/quickunion.rs @@ -18,6 +18,7 @@ pub struct Unweighted; /// Heuristic for quick union algorithm #[cfg(feature = "traits")] +#[cfg_attr(docsrs, doc(cfg(feature = "traits")))] pub trait Heuristic { fn handle_decision( a: T::IdentifierType,