Skip to content

Commit

Permalink
📝 Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeon256 committed Jan 10, 2023
1 parent 730a315 commit 4ee4fcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand All @@ -202,6 +203,7 @@ pub trait AlgorithmContainer {

/// Union operation
#[cfg(feature="traits")]
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
pub trait Union<T>
where
T: VertexType,
Expand All @@ -216,6 +218,7 @@ where

/// Find operation
#[cfg(feature="traits")]
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
pub trait Find<T>
where
T: VertexType,
Expand All @@ -225,6 +228,7 @@ where

/// Connected operation
#[cfg(feature="traits")]
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
pub trait Connected<T>
where
T: VertexType,
Expand Down
1 change: 1 addition & 0 deletions src/quickunion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct Unweighted<const IS_SLICE: bool = false>;

/// Heuristic for quick union algorithm
#[cfg(feature = "traits")]
#[cfg_attr(docsrs, doc(cfg(feature = "traits")))]
pub trait Heuristic {
fn handle_decision<T>(
a: T::IdentifierType,
Expand Down

0 comments on commit 4ee4fcd

Please sign in to comment.