pub struct PartRequest {
pub parts: u32,
pub method: Method,
pub balance: Option<f64>,
pub device: bool,
}Expand description
One call to partition or partition_graph.
Fields§
§parts: u32Number of domains. Must be at least 1.
method: MethodCut to run.
balance: Option<f64>None selects derived_balance for these cell weights.
device: boolRun weights, curve keys, and the prefix split on the device.
Implementations§
Source§impl PartRequest
impl PartRequest
Sourcepub fn new(parts: u32) -> Self
pub fn new(parts: u32) -> Self
parts domains, DEFAULT_METHOD, the default balance, on the host.
Trait Implementations§
Source§impl Clone for PartRequest
impl Clone for PartRequest
impl Copy for PartRequest
Source§impl Debug for PartRequest
impl Debug for PartRequest
Source§impl PartialEq for PartRequest
impl PartialEq for PartRequest
impl StructuralPartialEq for PartRequest
Auto Trait Implementations§
impl Freeze for PartRequest
impl RefUnwindSafe for PartRequest
impl Send for PartRequest
impl Sync for PartRequest
impl Unpin for PartRequest
impl UnsafeUnpin for PartRequest
impl UnwindSafe for PartRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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