pub struct ClusterCount(/* private fields */);Expand description
A cluster count of at least two.
Upstream libcugraph spectral clustering requires at least two clusters.
§Construction
use cugraph::params::ClusterCount;
assert_eq!(ClusterCount::new(2).unwrap().get(), 2);
assert!(ClusterCount::new(1).is_err());Implementations§
Trait Implementations§
Source§impl Clone for ClusterCount
impl Clone for ClusterCount
impl Copy for ClusterCount
Source§impl Debug for ClusterCount
impl Debug for ClusterCount
Source§impl Display for ClusterCount
impl Display for ClusterCount
impl Eq for ClusterCount
Source§impl From<ClusterCount> for usize
impl From<ClusterCount> for usize
Source§fn from(count: ClusterCount) -> usize
fn from(count: ClusterCount) -> usize
Converts to this type from the input type.
Source§impl Hash for ClusterCount
impl Hash for ClusterCount
Source§impl Ord for ClusterCount
impl Ord for ClusterCount
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ClusterCount
impl PartialEq for ClusterCount
Source§impl PartialOrd for ClusterCount
impl PartialOrd for ClusterCount
impl StructuralPartialEq for ClusterCount
Auto Trait Implementations§
impl Freeze for ClusterCount
impl RefUnwindSafe for ClusterCount
impl Send for ClusterCount
impl Sync for ClusterCount
impl Unpin for ClusterCount
impl UnsafeUnpin for ClusterCount
impl UnwindSafe for ClusterCount
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.