pub struct ClusterInfo { /* private fields */ }
Expand description
Information describing a cluster of points.
Implementations§
Source§impl ClusterInfo
impl ClusterInfo
Sourcepub fn is_cluster(&self) -> bool
pub fn is_cluster(&self) -> bool
Whether this object represents a cluster of containing points or a single input point.
If true, references a cluster with containing data. Otherwise, is an original point that was added to the index.
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
The number of points contained in this cluster
This will always be 1 if is_cluster
is false
.
Trait Implementations§
Source§impl Clone for ClusterInfo
impl Clone for ClusterInfo
Source§fn clone(&self) -> ClusterInfo
fn clone(&self) -> ClusterInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClusterInfo
impl Debug for ClusterInfo
Source§impl From<&ClusterInfo> for ClusterId
impl From<&ClusterInfo> for ClusterId
Source§fn from(value: &ClusterInfo) -> Self
fn from(value: &ClusterInfo) -> Self
Converts to this type from the input type.
Source§impl From<ClusterInfo> for ClusterId
impl From<ClusterInfo> for ClusterId
Source§fn from(value: ClusterInfo) -> Self
fn from(value: ClusterInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClusterInfo
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
Blanket Implementations§
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