pub struct ClusteredLayout {
pub num_clusters: usize,
pub radius: f64,
pub intra_cluster_spread: f64,
}Fields§
§num_clusters: usize§radius: f64§intra_cluster_spread: f64Implementations§
Source§impl ClusteredLayout
impl ClusteredLayout
pub fn new() -> Self
pub fn with_clusters(self, n: usize) -> Self
pub fn with_radius(self, r: f64) -> Self
pub fn with_spread(self, s: f64) -> Self
Trait Implementations§
Source§impl Default for ClusteredLayout
impl Default for ClusteredLayout
Source§impl<T: Clone + Send + Sync> LayoutStrategy<T> for ClusteredLayout
impl<T: Clone + Send + Sync> LayoutStrategy<T> for ClusteredLayout
fn layout( &self, items: &[T], mapper: &dyn DimensionMapper<Item = T>, ) -> LayoutResult<T>
Auto Trait Implementations§
impl Freeze for ClusteredLayout
impl RefUnwindSafe for ClusteredLayout
impl Send for ClusteredLayout
impl Sync for ClusteredLayout
impl Unpin for ClusteredLayout
impl UnsafeUnpin for ClusteredLayout
impl UnwindSafe for ClusteredLayout
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more