pub struct BfsDepthLimit(/* private fields */);Expand description
A BFS depth limit: the number of hops to expand from the sources.
0 expands no hops and reaches only the sources. Use None at the API
boundary to request unlimited traversal. A limit larger than the graph’s
vertex type can index behaves as unlimited.
§Construction
use cugraph::params::BfsDepthLimit;
let limit = BfsDepthLimit::new(3);
assert_eq!(limit.get(), 3);
assert_eq!(BfsDepthLimit::new(0).get(), 0);
assert!(BfsDepthLimit::try_from(-1i32).is_err());Implementations§
Trait Implementations§
Source§impl Clone for BfsDepthLimit
impl Clone for BfsDepthLimit
impl Copy for BfsDepthLimit
Source§impl Debug for BfsDepthLimit
impl Debug for BfsDepthLimit
Source§impl Display for BfsDepthLimit
impl Display for BfsDepthLimit
impl Eq for BfsDepthLimit
Source§impl From<BfsDepthLimit> for usize
impl From<BfsDepthLimit> for usize
Source§fn from(limit: BfsDepthLimit) -> usize
fn from(limit: BfsDepthLimit) -> usize
Converts to this type from the input type.
Source§impl From<u32> for BfsDepthLimit
impl From<u32> for BfsDepthLimit
Source§impl From<usize> for BfsDepthLimit
impl From<usize> for BfsDepthLimit
Source§impl Hash for BfsDepthLimit
impl Hash for BfsDepthLimit
Source§impl Ord for BfsDepthLimit
impl Ord for BfsDepthLimit
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 BfsDepthLimit
impl PartialEq for BfsDepthLimit
Source§impl PartialOrd for BfsDepthLimit
impl PartialOrd for BfsDepthLimit
impl StructuralPartialEq for BfsDepthLimit
Auto Trait Implementations§
impl Freeze for BfsDepthLimit
impl RefUnwindSafe for BfsDepthLimit
impl Send for BfsDepthLimit
impl Sync for BfsDepthLimit
impl Unpin for BfsDepthLimit
impl UnsafeUnpin for BfsDepthLimit
impl UnwindSafe for BfsDepthLimit
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.