pub struct PlaneFlowConfig {
pub counts: PlaneFlowCounts,
pub partition_rule: PlaneFlowPartitionRule,
}Expand description
Plane-flow configuration carried by CubeDimResource::Specialized. Holds the
counts for main-flow vs load-only planes and the partition rule used at
runtime.
Fields§
§counts: PlaneFlowCounts§partition_rule: PlaneFlowPartitionRuleImplementations§
Source§impl PlaneFlowConfig
impl PlaneFlowConfig
Sourcepub fn new_unspecialized(num_planes: u32) -> Self
pub fn new_unspecialized(num_planes: u32) -> Self
All planes participate in the main flow; no load-only planes.
Sourcepub fn main_flow_count(&self) -> u32
pub fn main_flow_count(&self) -> u32
Number of planes participating in main flow.
Sourcepub fn has_specialization(&self) -> bool
pub fn has_specialization(&self) -> bool
Whether the configuration uses dedicated load-only planes.
Trait Implementations§
Source§impl Clone for PlaneFlowConfig
impl Clone for PlaneFlowConfig
Source§fn clone(&self) -> PlaneFlowConfig
fn clone(&self) -> PlaneFlowConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlaneFlowConfig
Source§impl Debug for PlaneFlowConfig
impl Debug for PlaneFlowConfig
impl Eq for PlaneFlowConfig
Source§impl Hash for PlaneFlowConfig
impl Hash for PlaneFlowConfig
Source§impl PartialEq for PlaneFlowConfig
impl PartialEq for PlaneFlowConfig
impl StructuralPartialEq for PlaneFlowConfig
Auto Trait Implementations§
impl Freeze for PlaneFlowConfig
impl RefUnwindSafe for PlaneFlowConfig
impl Send for PlaneFlowConfig
impl Sync for PlaneFlowConfig
impl Unpin for PlaneFlowConfig
impl UnsafeUnpin for PlaneFlowConfig
impl UnwindSafe for PlaneFlowConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CompilationArg for T
impl<T> CompilationArg for T
Source§fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
Compilation args should be the same even with different element types. However, it isn’t
possible to enforce it with the type system. So, we make the compilation args serializable
and dynamically cast them. Read more
impl<T> CubeComptime for T
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.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