Skip to content

Commit 4ee4fcd

Browse files
committed
📝 Updated docs
1 parent 730a315 commit 4ee4fcd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ where
183183

184184
/// This trait represents the kind of containers that is required for a particular algorithm to function
185185
#[cfg(feature="traits")]
186+
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
186187
pub trait AlgorithmContainer {
187188
/// Any kind of contiguous container
188189
///
@@ -202,6 +203,7 @@ pub trait AlgorithmContainer {
202203

203204
/// Union operation
204205
#[cfg(feature="traits")]
206+
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
205207
pub trait Union<T>
206208
where
207209
T: VertexType,
@@ -216,6 +218,7 @@ where
216218

217219
/// Find operation
218220
#[cfg(feature="traits")]
221+
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
219222
pub trait Find<T>
220223
where
221224
T: VertexType,
@@ -225,6 +228,7 @@ where
225228

226229
/// Connected operation
227230
#[cfg(feature="traits")]
231+
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
228232
pub trait Connected<T>
229233
where
230234
T: VertexType,

src/quickunion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub struct Unweighted<const IS_SLICE: bool = false>;
1818

1919
/// Heuristic for quick union algorithm
2020
#[cfg(feature = "traits")]
21+
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
2122
pub trait Heuristic {
2223
fn handle_decision<T>(
2324
a: T::IdentifierType,

0 commit comments

Comments
 (0)