pub struct Partitions {
pub assignments: Vec<u32>,
pub count: usize,
}Expand description
Cluster-to-partition assignments in upstream order.
Fields§
§assignments: Vec<u32>Partition id for each input cluster.
count: usizeNumber of partitions.
Trait Implementations§
Source§impl Debug for Partitions
impl Debug for Partitions
Source§impl Default for Partitions
impl Default for Partitions
impl Eq for Partitions
Source§impl PartialEq for Partitions
impl PartialEq for Partitions
impl StructuralPartialEq for Partitions
Auto Trait Implementations§
impl Forget for Partitions
impl Freeze for Partitions
impl RefUnwindSafe for Partitions
impl Send for Partitions
impl Sync for Partitions
impl Unpin for Partitions
impl UnsafeUnpin for Partitions
impl UnwindSafe for Partitions
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